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
14
15
16
//! Mathematical constants (`pi`, `e`, `ln(2)`, …).
//!
//! The [`DecimalConstants`] trait carries the public surface; per-width
//! impls live in [`d38`] (narrow tier — D9 / D18 / D38) and [`wide`]
//! (wide tier — D57 and above).

pub(crate) mod d38;
pub(crate) mod wide;

pub use d38::DecimalConstants;

// Re-export every `pub(crate)` helper from `d38` (the narrow-tier
// constant tables) so the macros emitted by `macros/consts.rs` can
// reach them through `$crate::types::consts::<name>` from the
// per-width impl invocations.
pub(crate) use d38::*;