Registry / utility / fixed
library1.31.0rscratesunverified

Fixed-point numbers.

# Cargo.toml [dependencies] fixed = "1.31.0"
INSTALL
IMPORT
SIG · FIXED
F
fixed
utilityrustv1.31.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FixedI32
use fixed::FixedI32;

Creates fixed-point numbers and performs arithmetic.

use fixed::FixedI32; let a = FixedI32::from_num(1.5); let b = FixedI32::from_num(2.5); let sum = a + b; println!("Sum: {}", sum);
Debug
Known issues
gotchaFixed-point types have limited precision; overflow panics in debug mode.
fix
Use checked arithmetic methods like `checked_add` or enable wrapping behavior with `Wrapping` wrapper.
affects: >=1.0.0
Upgrade
Version history
1.31.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fixed — cargo add fixed · libregistry