Extensions to Core.Float.
val pretty : ?on_negative:[ `Blow_up | `Normal | `Print_dir ] ‑> float ‑> stringpretty-print a float using no more than five characters, using abberviations k, m, g, t.
if on_negative is not set to `Normal then the resulting is never over four
chars but upon negative number we either:
"<0"val order_of_magnitude_difference : float ‑> float ‑> intorder_of_magnitude_difference a b
by how many orders of magnitude do a and b differ?
The return value is non-negative.
examples:
include Number.Verified_std with type repr = Core.Float.tmodule Make_bounded : functor (Spec : Bounded_spec) -> Bounded with type t = private reprFunctor of creating bounded numbers
Unsafe modules and functors that still fully expose the representation for extensibility.
module Pos_unsafe : S with type t = reprmodule Pos0_unsafe : S0 with type t = reprmodule Neg_unsafe : S with type t = reprmodule Neg0_unsafe : S0 with type t = reprmodule Make_bounded_unsafe : functor (Spec : Bounded_spec) -> Bounded with type t = reprmodule type Fraction : sig ... endmodule Fraction : Fraction with type t = private Core.Float.tmodule Fraction_unsafe : Fraction with type t = Core.Float.t