decimal-scaled 0.4.2

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
use decimal_scaled::{D57, D115, D462, D616, D924, D1232, DecimalConstants};
fn main() {
    println!("D57<5> pi  = {:?}", D57::<5>::pi());
    println!("D115<10> pi = {:?}", D115::<10>::pi());
    println!("D462<10> pi = {:?}", D462::<10>::pi());
    println!("D616<10> pi = {:?}", D616::<10>::pi());
    println!("D924<10> pi = {:?}", D924::<10>::pi());
    println!("D1232<10> pi = {:?}", D1232::<10>::pi());
}