Ring.T
Module type arithmetic types equipped with addition and multiplication.
* div p1 p2
returns the division of p1 by p2. * None if the division is not exact
val to_int : t -> int option
None if the value cannot be converted exactly to an integer
val to_float : t -> float
val to_rational : t -> Mpqf.t
val floor : t -> int
val zero : t
constants
val one : t
val of_int : int -> t
constructors
val of_float : float -> t
val of_rational : Mpqf.t -> t
val print : Stdlib.Format.formatter -> t -> unit
printintg
val to_string : t -> string