Decimal Numbers For The Rust Programming Language
The API provides a light-weight alternative to arbitrary-precision arithmetic.
The const generics for base-ten exponents fix the computation steps involved
at compile time. You basicaly get the speed of 64-bit primitives combined with
the safety from big-number implementations.
let cents = 2>from;
assert_eq!;
Parsing, formatting and calculation all is losses by design (unless explicitly stated otherwise in the method name).
// metric prefixes
use ;
// instantiate SI units
let mA = from;
let ns = from;
// multiply into another base
let : = mA.product;
if overflow != ZERO
// pretty formatting options
assert_eq!;
This is free and unencumbered software released into the public domain.