decimal-scaled 0.4.1

Const-generic base-10 fixed-point decimals (D9/D18/D38/D76/D153/D307) with integer-only transcendentals correctly rounded to within 0.5 ULP — exact at the type's last representable place. Deterministic across every platform; no_std-friendly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Equality, ordering, and hashing — the equivalence-class contract for
//! the decimal types.
//!
//! Because every logical value has exactly one representation at a fixed
//! scale, `PartialEq`, `Eq`, `Hash`, `PartialOrd`, and `Ord` are all
//! derived from the underlying integer storage. This bucket groups the
//! impl sites so the contract is visible in one place.
//!
//! `PartialOrd`, `Ord`, and `Hash` impls are emitted by
//! [`crate::macros::basics`] today; only the cross-primitive
//! `PartialEq<primitive>` wiring lives here.

pub(crate) mod equalities;