go-bignum documentation
You are reading the documentation of an outdated version, whose text may no longer be accurate. Go to the latest version.
go-bignum is arbitrary precision in pure Go. Its library, bigfloat,
provides correctly rounded elementary functions and constants on Go’s
math/big.Float, at any precision and in all six rounding modes, with no cgo
and no dependencies. Its tests replay golden fixtures certified with
mpmath at high precision.
bigfloat is released v0.1.0: every function is at or below mpmath’s time
on one core, and the results stay correctly rounded.
The libraries
| Library | Status | What it does |
|---|---|---|
| bigfloat | released v0.1.0 | roots, exponentials and logarithms, trigonometric and hyperbolic functions, Pow and the constants π, e, ln 2, ln 10 and γ, correctly rounded; the oracle package drives mpmath from Go and stores golden fixtures |
Install
go get github.com/go-bignum/bigfloat@v0.1.0The module is pure Go (CGO_ENABLED=0) and its go.mod says Go 1.27.1.
What each library’s pages hold
| Library | Pages |
|---|---|
| bigfloat | overview |
Created on by tannevaled
Modified on by tannevaled