Versions in this module Expand all Collapse all v0 v0.55.0 May 4, 2024 v0.54.0 Apr 4, 2024 Changes in this version + var DefaultBitPrecision uint = 128 + var DefaultDigitPrecision = 8 + var DefaultRoundingMode = big.ToNearestAway + var MarshalJSONAsString = true + type Float struct + func AddFloat(f ...interface{}) *Float + func CreateFloat(v float64) Float + func MulFloat(f, g interface{}) *Float + func MustParseFloat(s string) (f *Float) + func NewFloat(v interface{}) *Float + func ParseFloat(s string) (f *Float, err error) + func QuoFloat(f, g interface{}) *Float + func SubFloat(f, g *Float) *Float + func (f *Float) Add(g interface{}) *Float + func (f *Float) Clone() *Float + func (f *Float) Int64() int64 + func (f *Float) IsEqual(g interface{}) bool + func (f *Float) IsGreater(g interface{}) bool + func (f *Float) IsGreaterOrEqual(g interface{}) bool + func (f *Float) IsLess(g interface{}) bool + func (f *Float) IsLessOrEqual(g interface{}) bool + func (f *Float) IsZero() bool + func (f *Float) MarshalJSON() ([]byte, error) + func (f *Float) Mul(g interface{}) *Float + func (f *Float) ParseFloat(s string) (err error) + func (f *Float) Quo(g interface{}) *Float + func (f *Float) String() string + func (f *Float) Sub(g interface{}) *Float + func (f *Float) UnmarshalJSON(in []byte) (err error) + type Int struct + func NewInt(v interface{}) (i *Int) + func (i *Int) Add(v interface{}) *Int + func (i *Int) IsGreater(v interface{}) bool + func (i *Int) IsLess(v interface{}) bool + func (i *Int) IsZero() bool + func (i *Int) MarshalJSON() ([]byte, error) + func (i *Int) Scan(src interface{}) error + func (i *Int) UnmarshalJSON(in []byte) (err error) + func (i *Int) Value() (driver.Value, error) + type Rat struct + func AddRat(f ...interface{}) *Rat + func MulRat(f ...interface{}) *Rat + func NewRat(v interface{}) (r *Rat) + func QuoRat(f ...interface{}) *Rat + func SubRat(f ...interface{}) *Rat + func (r *Rat) Abs() *Rat + func (r *Rat) Add(g interface{}) *Rat + func (r *Rat) Humanize(thousandSep, decimalSep string) string + func (r *Rat) Int64() int64 + func (r *Rat) IsEqual(g interface{}) bool + func (r *Rat) IsGreater(g interface{}) bool + func (r *Rat) IsGreaterOrEqual(g interface{}) bool + func (r *Rat) IsGreaterThanZero() bool + func (r *Rat) IsLess(g interface{}) bool + func (r *Rat) IsLessOrEqual(g interface{}) bool + func (r *Rat) IsLessThanZero() bool + func (r *Rat) IsZero() bool + func (r *Rat) MarshalJSON() ([]byte, error) + func (r *Rat) Mul(g interface{}) *Rat + func (r *Rat) Quo(g interface{}) *Rat + func (r *Rat) RoundNearestFraction() *Rat + func (r *Rat) RoundToNearestAway(prec int) *Rat + func (r *Rat) RoundToZero(prec int) *Rat + func (r *Rat) Scan(v interface{}) error + func (r *Rat) String() string + func (r *Rat) Sub(g interface{}) *Rat + func (r *Rat) UnmarshalJSON(in []byte) (err error) + func (r *Rat) Value() (driver.Value, error)