Page 1 of 1

codePointToNum Hex

Posted: Mon Jul 13, 2020 12:58 pm
by richmond62
If I do this sort of thing:

Code: Select all

put codePointToNum("ך")
I get 1512, the decimal equivalent of the hexadecimal Unicode number for that character ('resh').

How do I get 0x5E8, the hexadecimal?

Re: codePointToNum Hex

Posted: Mon Jul 13, 2020 2:06 pm
by Klaus
Hi Richmond,

use the baseconvert() function.

Code: Select all

...
put codePointToNum("ך") into tDecimalNum
put baseconvert(tDecimalNum,10,16) into tHexNum
## -> 5E8
...
Best

Klaus

Re: codePointToNum Hex

Posted: Mon Jul 13, 2020 3:16 pm
by richmond62
Great: Thanks. 8)
-
Screenshot 2020-07-14 at 9.37.43.png

Re: codePointToNum Hex

Posted: Wed Jul 15, 2020 2:49 pm
by richmond62
Screenshot 2020-07-15 at 16.47.55.png
-
My friend with 37 fingers was severely disappointed. 8)