[][src]Crate fixed_unsigned

Modules

types

Structs

FixedUnsigned

A fixed point unsigned integer

ParseError

Error returned when a string representation can't be parse into a FixedUnsigned. TODO: Attach string to it for error message

RoundDown

Round down - i.e. truncate

RoundHalfUp

Round half up - i.e. 0.4 -> 0 and 0.5 -> 1

Traits

FixedScale

Trait for a fixed scale. It only has one associated constant that must be implemented: SCALE, which defines the place of the decimal point.

RoundingMode

A trait for rounding when scaling down