module Float: sig end
Comparison
|
val compare : float -> float -> int
Pervasives.compare
constrained to floatval fcmp : epsilon:float -> float -> float -> int
compare
, but takes an extra epsilon value to use in figuring
out if the floats are 'close enough' to be considered equal. See The
Art of Computer Programming, 4.2.2. As an example,
fcmp ~epsilon:0.00001 5.000005 5.000006
returns 0, meaning
5.000005 ~~ 5.000006.
Informational
|
val isfinite : float -> bool
val isinf : float -> bool
val isnan : float -> bool
val isnormal : float -> bool
val iszero : float -> bool
val signbit : float -> bool
Other stuff
|
val copysign : float -> float -> float
copysign x y
returns a copy of x with the same sign as y.