ItvUtils.FloatSourceFloat - Floating-point arihmetics with rounding.
We rely on C code to provide functions with correct rounding (rounding direction and rounding precision).
type bit_float = {sign : bool;sign bit (true means negative)
*)fraction : Z.t;fraction bits
*)exponent : int;exponent (positive, with bias)
*)}Bit-representation of a float value.
Set the rounding mode globally. This affects the behaviors of all floating-point operations, including OCaml's native float operations, but excluding the operations in this module (and the float interval module) that specify a rounding direction.
Note that the operations with specified rounding directions may change the rounding direction globally in some unspecified way, and not reset it to its former value (this is done for efficiency).
As sign, but zero is signed. Returns -1 (negative or -0), 0 (NaN), or 1 (positive of +0)
Control the printing of a float (precision, rounding, etc.).
Default format.
We provide the classic operations (and more) for single and double precision and all four rounding directions.
Precision.
Rounding direction.
Conversion from string, with safe rounding.
Useful constants.
Bit-level extraction.