Expand description
Mathematical utilities for fixed-point arithmetic
Functionsยง
- complement_
fixed - Calculate complement (1 - x) with fixed-point arithmetic
- div_
down_ fixed - Divide two BigInts and round down
- div_up
- Divide and round up (raw division)
- div_
up_ fixed - Divide two BigInts and round up
- mul_
div_ up_ fixed - Multiply and divide with up rounding
- mul_
down_ fixed - Multiply two BigInts and round down
- mul_
up_ fixed - Multiply two BigInts and round up
- pow_
down_ fixed - Calculate power with down rounding (default version 0)
- pow_
down_ fixed_ with_ version - Calculate power with down rounding with explicit version
- pow_
up_ fixed - Calculate power with up rounding (default version 0)
- pow_
up_ fixed_ with_ version - Calculate power with up rounding with explicit version