Hex-ache
Posted: Wed Aug 20, 2025 6:51 pm
If I do this sort of thing:
I get 926, which is that code point's Unicode address in decimal format . . .
which is a bit of a pain in the bum as I should like it in Hexadecimal (39E) without having to play "silly buggers' with the calculator app (especially when I have about 3,000 of those to cope with) . . .
Is there any way to use codepointToNum to get a Hex number?
This is inaccurate:
- -
insofar is does NOT state that that number is returned in decimal format.
This can be done in JavaScript:
Of course I could use baseConvert, but I was wondering if there was a more direct method.
Code: Select all
put codePointToNum("Ξ")
which is a bit of a pain in the bum as I should like it in Hexadecimal (39E) without having to play "silly buggers' with the calculator app (especially when I have about 3,000 of those to cope with) . . .
Is there any way to use codepointToNum to get a Hex number?
This is inaccurate:
- -
insofar is does NOT state that that number is returned in decimal format.
This can be done in JavaScript:
Code: Select all
(945).toString(16); // returns "3b1"