Modules§
Structs§
- Fixed
Unsigned - A fixed point unsigned integer
- Parse
Error - Error returned when a string representation can’t be parse into a FixedUnsigned. TODO: Attach string to it for error message
- Round
Down - Round down - i.e. truncate
- Round
Half Up - Round half up - i.e. 0.4 -> 0 and 0.5 -> 1
Traits§
- Fixed
Scale - Trait for a fixed scale. It only has one associated constant that must be implemented:
SCALE
, which defines the place of the decimal point. - Rounding
Mode - A trait for rounding when scaling down