Skip to content

Reference

The per-topic reference pages, in one screen. New to the crate? Start with Getting started instead; the deep-dive on how correctness is proven lives on the Harness page under Bench.

Topic What it covers
The width family The storage widths from D18 to D1232 — when to pick which, scale aliases, the Decimal trait, the required Cargo features.
Rounding RoundingMode, the _with method pairs, rescale, and the compile-time rounding-* feature flags.
Conversions Integer / float conversions, cross-width widening and narrowing, to_int, the float bridge.
Serde The raw-storage wire format for human-readable and binary serialisers, and the cross-system scale contract.
Cross-scale operations Mixing widths and SCALEs in one expression via mul_of / add_of / cmp_of / clamp_of and friends, plus the nightly auto-inferred form.
Glossary Every acronym, shortening, and term of art used across the crate, its docs, and its benchmarks.

Related pages elsewhere on the site: