Module Kappa_generic_toolset.Nbr
val compare : t -> t -> intval is_greater : t -> t -> boolval is_smaller : t -> t -> boolval is_equal : t -> t -> boolval add : t -> t -> tval sub : t -> t -> tval mult : t -> t -> tval internal_div : t -> t -> teuler division when only int are involved, float div else
val rem : t -> t -> tval pow : t -> t -> tval min : t -> t -> tval max : t -> t -> tval succ : t -> tval pred : t -> tval neg : t -> tval to_float : t -> float optionNonewhen infinity or Not a Number
val to_int : t -> intval zero : tval is_zero : t -> boolval one : tval is_strictly_positive : t -> boolval print : Format.formatter -> t -> unitval pretty_print : Format.formatter -> t -> unitFloats are compactly printed
val print_option : Format.formatter -> t -> unitPrints nothing in case of infinity or Not a Number
val iteri : (t -> 'a -> 'a) -> 'a -> t -> 'aiteri f x n- returns
f (n - k) (... (f (n - 1) (f n x))) where k < n <= k+1
val maybe_iteri : (t -> 'a -> 'a option) -> 'a -> t -> 'amaybe_iteri f x n- returns
f (n - k) (... (f (n - 1) (f n x))) up to k < n <= k+1 or
freturnsNone
val to_yojson : t -> Yojson.Basic.tval of_yojson : Yojson.Basic.t -> t- raises Yojson.Basic.Util.Type_error
if incorrect
val string_of_t : ?len:int -> t -> stringSerialize a value of type
tinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val of_un_alg_op : Operator.un_alg_op -> t -> tval of_bin_alg_op : Operator.bin_alg_op -> t -> t -> tval of_compare_op : Operator.compare_op -> t -> t -> bool