decimal-scaled 0.3.0

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.
1
2
3
4
5
6
7
8
9
use decimal_scaled::{D56, D114, D461, D615, D923, D1231, DecimalConsts};
fn main() {
    println!("D56<5> pi  = {:?}", D56::<5>::pi());
    println!("D114<10> pi = {:?}", D114::<10>::pi());
    println!("D461<10> pi = {:?}", D461::<10>::pi());
    println!("D615<10> pi = {:?}", D615::<10>::pi());
    println!("D923<10> pi = {:?}", D923::<10>::pi());
    println!("D1231<10> pi = {:?}", D1231::<10>::pi());
}