Open source · the foundation

gMath.
Integer-exact math.

No floats. Same answer every run.

What it is

A fixed-point math library, in pure Rust.

Every operation is integer arithmetic. No f32 or f64 touches the compute path, so results are reproducible and auditable.

Deterministic by construction

Same input, same output.

Integer arithmetic is exact. On a given profile, identical input gives identical output, run after run, machine after machine. Verified on x86-64.

Precision you choose

Five profiles.

Pick the range and accuracy your workload needs, at compile time.

Q16.16Q32.32Q64.64Q128.128Q256.256
Four domains

One library.

Binary, decimal, balanced ternary, and symbolic rational. Values route to the representation that holds them exactly.

Real numerics on top

Not just arithmetic.

Eighteen transcendental functions, dense linear algebra, differential geometry, Lie groups, ODE solvers, tensors, and ternary-quantized inference.

By the numbers
5
precision profiles, Q16.16 to Q256.256
4
numeric domains, auto-routed
18
transcendental functions
0
runtime dependencies by default

Decimal transcendentals are correctly rounded to their storage precision, validated against a 50-digit reference. MIT or Apache-2.0.