Post Reply 
Strange behaviour STRING command in case STRING(√7)
11-20-2016, 05:40 PM
Post: #2
RE: Strange behaviour STRING command in case STRING(√7)
Strings on the Prime are in Unicode. A size of 4 for the string "√7" is quite correct.

s:=string(√7) -> "√7"
asc(s) -> {226,136,154,55}
char({226,136,154,55}) -> "√7"
char({226,136,154}) -> "√"

If you look at the Unicode details for the "√" charater, its UTF-8 representation is:

0xE2 0x88 0x9A (226,136,154)

http://www.fileformat.info/info/unicode/.../index.htm

Mark Hardman

Ceci n'est pas une signature.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Strange behaviour STRING command in case STRING(√7) - Mark Hardman - 11-20-2016 05:40 PM



User(s) browsing this thread: 2 Guest(s)