include module type of sig ... end
type t = Q.t = {}
val make : Z.t -> Z.t -> tval zero : tval one : tval minus_one : tval inf : tval minus_inf : tval undef : tval of_bigint : Z.t -> tval of_int : int -> tval of_int32 : int32 -> tval of_int64 : int64 -> tval of_nativeint : nativeint -> tval of_ints : int -> int -> tval of_float : float -> tval of_string : string -> tval num : t -> Z.tval den : t -> Z.t
type kind = Q.kind = | ZERO |
| INF |
| MINF |
| UNDEF |
| NZERO |
val classify : t -> kindval is_real : t -> boolval sign : t -> intval compare : t -> t -> intval equal : t -> t -> boolval min : t -> t -> tval max : t -> t -> tval leq : t -> t -> boolval geq : t -> t -> boolval lt : t -> t -> boolval gt : t -> t -> boolval to_bigint : t -> Z.tval to_int : t -> intval to_int32 : t -> int32val to_int64 : t -> int64val to_nativeint : t -> nativeintval to_string : t -> stringval to_float : t -> floatval neg : t -> tval abs : t -> tval add : t -> t -> tval sub : t -> t -> tval mul : t -> t -> tval inv : t -> tval div : t -> t -> tval mul_2exp : t -> int -> tval div_2exp : t -> int -> tval print : t -> unitval output : Stdlib.out_channel -> t -> unitval sprint : unit -> t -> stringval bprint : Stdlib.Buffer.t -> t -> unitval pp_print : Stdlib.Format.formatter -> t -> unitval (~-) : t -> tval (~+) : t -> tval (+) : t -> t -> tval (-) : t -> t -> tval (*) : t -> t -> tval (/) : t -> t -> tval (lsl) : t -> int -> tval (asr) : t -> int -> tval (~$) : int -> tval (//) : int -> int -> tval (~$$) : Z.t -> tval (///) : Z.t -> Z.t -> tval (=) : t -> t -> boolval (<) : t -> t -> boolval (>) : t -> t -> boolval (<=) : t -> t -> boolval (>=) : t -> t -> boolval (<>) : t -> t -> bool
val yojson_of_t : t -> Ppx_yojson_conv_lib.Yojson.Safe.tval is_zero : t -> boolval is_not_zero : t -> boolval is_one : t -> boolval is_minus_one : t -> boolval not_equal : t -> t -> boolval to_int : t -> int optionval to_int32 : t -> int32 optionval to_int64 : t -> int64 optionval to_bigint : t -> Z.t optionval to_nativeint : t -> nativeint option