ChrNumVal
Returns the numeric value represented by a character.
Syntax
-
ChrNumVal(c)
-
c
is a character (string of length 1)
-
Description
If c
is a character that represents a number (not necessary a digit), then ChrNumVal(c)
returns this number; otherwise, ChrNumVal(c)
returns −1
.
Examples
characters("ABC75610½¼¾⅛ⅷ፹Ⅳ⑭〤⑽⒖") @ ChrNumVal
−1 −1 −1 7 5 6 1 0 0.5 0.25 0.75 0.125 8 80 4 14 4 10 15