Versions in this module Expand all Collapse all v1 v1.2.1 May 14, 2026 Changes in this version + const DefaultPrecision + func ApproximatelyEqual(a, b float64) bool + func BigIntToHighAndLow(x *big.Int) (uint64, uint64) + func CantorPair(k1, k2 uint64) uint64 + func CantorUnpair(pair uint64) (uint64, uint64) + func Clamp(value, lowerLimit, upperLimit float64) float64 + func HighAndLowToBigInt(h, l uint64) *big.Int + func IntStringToBigInt(str string) *big.Int + func RandomDigitString(length int) (result string) + func Round(v float64, p float64) float64 + func RoundWithPrecision(value float64, precision float64) float64 + func WeightIndex(prob map[interface{}]uint64) interface