Algosim documentation: ChrNumVal

ChrNumVal

Returns the numeric value represented by a character.

Syntax

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

See also