Skip to main content

Module fixed_float

Module fixed_float 

Source
Expand description

Fixed-precision floating point — a mpfx-style convenience wrapper over Float.

Float takes an explicit output precision and RoundingMode on every operation (the flexible MPFR-style interface). FixedFloat instead bakes a precision and rounding mode into the value, so it supports the ordinary + - * / operators and method-style transcendentals without threading those parameters through each call. Binary operations use the larger of the two operands’ precisions and the left operand’s rounding mode.

Structs§

FixedFloat
A floating-point value carrying a fixed working precision and rounding mode.