decimal-scaled 0.5.0

Const-generic base-10 fixed-point decimals (D18/D38/D76/D153/D307 and the half-width tiers up to D1232) 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
// SPDX-FileCopyrightText: 2026 John Moxley
// SPDX-License-Identifier: MIT OR Apache-2.0

//! Mathematical constants (`pi`, `e`, and more).
//!
//! The [`DecimalConstants`] trait carries the public surface; a single
//! generic impl in [`decimal_constants`] serves every width (narrow and wide),
//! sourced from the unified per-scale table in [`crate::consts`].

pub(crate) mod decimal_constants;

// DecimalConstants is defined in types/traits/consts.rs; the impl lives in
// decimal_constants.rs. Re-export here to preserve the crate::types::consts
// path for in-crate consumers that still import from this module.
pub use crate::types::traits::DecimalConstants;