Skip to main content

Units

Exact-arithmetic financial math using BigInt rationals

Get Started

Exact Arithmetic

Every number is a BigInt rational — no floats, no rounding errors.1/3 * 3 = 1, always.

Type-Safe Units

GBP + EUR is a compile-time error. Unsigned values reject negatives at both the type level and runtime.

Extensible

Add custom methods to all values via the plugin system. BigNumber.js, custom rounding constraints, and more.