Framac_ival.Fc_floatSourceImplementation of floating-point values of different precision, using the standard ocaml floating-point numbers in double precision. Long_Double and Real are inexact.
include Float_sig.S with type t = floatIs the representation of floating-point numbers of a given precision exact? Should at least be false for Real.
Converts a caml float into a floating-point number of the given precision. Must work on infinities and on negative and positive zeros.
Converts a floating-point number of single or double precision into a caml float. Never called on better precision than double.
IEEE comparison: do not distinguish between -0.0 and 0.0. This comparison must work between values of different precisions.
Comparison that distinguishes -0.0 and 0.0. This comparison must work between values of different precisions.
Is a number negative? Never called on NaN, but must be correct on infinities and zeros.
Rounds a number to a given precision.
First value above the argument in the given precision. Returns the minimum finite value on -infty. Returns +0 on -0, and the minimum strictly positive value on +0. Returns +infty on the maximum finite value. Returns +infty on +infty. Undefined on NaN.
First value below the argument in the given precision. Inversed behavior as next_float.
widen_up f returns a value strictly larger than f, such that successive applications of widen_up converge rapidly to infinity.
Floating-point operations.