Module Chars.Decimal

Decimal (Base 10) Digits

val is : char -> bool

(is c) is true iff c is an ASCII decimal digit.

val digit : int -> char

(digit i) is the character representing the the number i.

  • raises Invalid_argument

    if i is not in the range [0,9].

val int : char -> int

(int c) is the integer represented by the digit character c.

  • raises Invalid_argument

    if c is not in the range ['0','9'].