Module Numbers

module Numbers: sig .. end
A smaller Num module, pure OCaml only.

type num = 
| Int of int
| Big_int of Integers.big_int
| Ratio of Rationals.ratio
val sign_num : num -> int
Return -1, 0 or 1 according to the sign of the argument.
val abs_num : num -> num
Absolute value.
val is_integer_num : num -> bool
Is the number an integer?
val (+/) : num -> num -> num
val (-/) : num -> num -> num
val ( */ ) : num -> num -> num
val (//) : num -> num -> num
val mod_num : num -> num -> num
Euclidean division: remainder.
val quo_num : num -> num -> num
Euclidean division: quotient.
val num_of_int : int -> num
val int_of_num : num -> int
val float_of_num : num -> float
val num_of_string : string -> num
val string_of_num : num -> string
val (=/) : num -> num -> bool
val (<>/) : num -> num -> bool
val (</) : num -> num -> bool
val (<=/) : num -> num -> bool
val (>/) : num -> num -> bool
val (>=/) : num -> num -> bool
val compare_num : num -> num -> int