Skip to main content

Module float

Module float 

Source
Expand description

Moves between fixed-point decimal and COMP-1/COMP-2, and floating-point intermediates. Each conversion here is an assumption: see crate::assumptions::FLOAT_FROM_DECIMAL, crate::assumptions::FLOAT_TO_DECIMAL and crate::assumptions::FLOAT_NARROWING_TRUNCATES.

Functionsยง

from_fixed
narrow
to_fixed
The fixed-point value a receiver of places gets, and whether it overflowed (ON SIZE ERROR).