Skip to main content

Module fixed

Module fixed 

Source

Structs§

Fixed
A fixed-point number represented by an underlying integer type and a fractional bit depth.
RationalFormatter
A helper struct that implements Display to format a fixed-point number as a rational value (e.g., 1+1/2).

Traits§

PromoteAddSub
PromoteMul

Functions§

compare_fixed
Compares two fixed-point numbers with potentially different underlying types and fractional resolutions.