CCFloatBasic operations on floating-point numbers
val nan : tnan is Not a Number (NaN). Equal to Stdlib.nan.
val max_value : tmax_value is Positive infinity. Equal to Stdlib.infinity.
val min_value : tmin_value is Negative infinity. Equal to Stdlib.neg_infinity.
val max_finite_value : tmax_finite_value is the largest finite float value. Equal to Stdlib.max_float.
val epsilon : tepsilon is the smallest positive float x such that 1.0 +. x <> 1.0. Equal to Stdlib.epsilon_float.
val pi : tpi is the constant pi. The ratio of a circumference to its diameter.
val is_nan : t -> boolis_nan f returns true if f is NaN, false otherwise.
abs x is the absolute value of the floating-point number x. Equal to Stdlib.abs_float.
type 'a printer = Stdlib.Format.formatter -> 'a -> unittype 'a random_gen = Stdlib.Random.State.t -> 'aval hash : t -> intval random : t -> t random_genval random_small : t random_genval random_range : t -> t -> t random_genround x returns the closest integer value, either above or below. For n + 0.5, round returns n.
val sign_exn : t -> intsign_exn x will return the sign of x as 1, 0 or -1, or raise an exception TrapNaN if x is NaN. Note that infinities have defined signs in OCaml.
val to_int : t -> intAlias to int_of_float. Unspecified if outside of the range of integers.
val of_int : int -> tAlias to float_of_int.
val to_string : t -> stringval of_string_exn : string -> tAlias to float_of_string.
val of_string_opt : string -> t optionEquality with allowed error up to a non negative epsilon value.
classify x returns the class of the given floating-point number x: normal, subnormal, zero, infinite or nan (not a number).
module Infix : sig ... endinclude module type of Infix