|
| Previous: 3.3.12 UPPER | TOC | Index | Back | Next: 3.3.14 XDIGIT |
CHR.VALUE(c) ! Char => Num
Return the value of the digit 'c'. If 'c' is not a (hexa-decimal) digit, return -1. The following values are returned:
'0' -> 0 '4' -> 4 '8' -> 8 'C' -> 12 '1' -> 1 '5' -> 5 '9' -> 9 'D' -> 13 '2' -> 2 '6' -> 6 'A' -> 10 'E' -> 14 '3' -> 3 '7' -> 7 'B' -> 11 'F' -> 15 'a' -> 10 'c' -> 12 'e' -> 14 'b' -> 11 'd' -> 13 'f' -> 15
All other characters are mapped to -1.
See also: XDIGIT
| Previous: 3.3.12 UPPER | TOC | Index | Back | Next: 3.3.14 XDIGIT |