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
16
// SPDX-FileCopyrightText: 2026 John Moxley
// SPDX-License-Identifier: MIT OR Apache-2.0

//! Decimal division algorithm family.
//!
//! One algorithm: [`div_widen_scale`] — widens `a * 10^SCALE` to the
//! next-up work width `W` then divides by `b`, rounding under `mode`, with
//! a value-gated fast path that skips the widen step when the scaled
//! numerator provably fits the storage width. The per-`(N, SCALE)` choice
//! lives in [`crate::policy::div`], which delegates *down* to this kernel.
//!
//! [`div_widen_scale`]: crate::algos::div::div_widen_scale::div_widen_scale

pub(crate) mod div_widen_scale;
pub(crate) mod div_native;
pub(crate) mod div_schoolbook;