val epsilon : t
The smallest positive float x such that 1.0 +. x <> 1.0
.
Equal to Pervasives.epsilon_float.
val hash : t ‑> int
val random : t ‑> t random_gen
val random_small : t random_gen
val random_range : t ‑> t ‑> t random_gen
val sign_exn : t ‑> int
sign_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_string : t ‑> string
val of_string_exn : string ‑> t
Alias to float_of_string.
val of_string : string ‑> t
Alias to float_of_string.
Return the class of the given floating-point number: normal, subnormal, zero, infinite or nan (not a number).
module Infix : sig ... end
include module type of Infix