Chars.Decimal
val is : char -> bool
(is c) is true iff c is an ASCII decimal digit.
(is c)
true
c
val digit : int -> char
(digit i) is the character representing the the number i.
(digit i)
i
Invalid_argument
if i is not in the range [0,9].
[0,9]
val int : char -> int
(int c) is the integer represented by the digit character c.
(int c)
if c is not in the range ['0','9'].
['0','9']