Versions in this module Expand all Collapse all v1 v1.0.0 Aug 11, 2024 Changes in this version + const DecimalPrecisionBits + const Precision + func DecsEqual(d1s, d2s []Dec) bool + type Dec struct + func MaxDec(d1, d2 Dec) Dec + func MinDec(d1, d2 Dec) Dec + func MustNewDecFromStr(s string) Dec + func NewDec(i int64) Dec + func NewDecFromBigInt(i *big.Int) Dec + func NewDecFromBigIntWithPrec(i *big.Int, prec int64) Dec + func NewDecFromHex(str string) Dec + func NewDecFromInt(i *big.Int) Dec + func NewDecFromIntWithPrec(i *big.Int, prec int64) Dec + func NewDecFromStr(str string) (d Dec, err error) + func NewDecFromString(i string) (Dec, error) + func NewDecWithPrec(i, prec int64) Dec + func OneDec() Dec + func Pow(base Dec, exp int) Dec + func SmallestDec() Dec + func ZeroDec() Dec + func (d *Dec) UnmarshalJSON(bz []byte) error + func (d Dec) Abs() Dec + func (d Dec) Add(d2 Dec) Dec + func (d Dec) Ceil() Dec + func (d Dec) Equal(d2 Dec) bool + func (d Dec) Format(s fmt.State, verb rune) + func (d Dec) GT(d2 Dec) bool + func (d Dec) GTE(d2 Dec) bool + func (d Dec) IsInteger() bool + func (d Dec) IsNegative() bool + func (d Dec) IsNil() bool + func (d Dec) IsPositive() bool + func (d Dec) IsZero() bool + func (d Dec) LT(d2 Dec) bool + func (d Dec) LTE(d2 Dec) bool + func (d Dec) MarshalJSON() ([]byte, error) + func (d Dec) MarshalYAML() (interface{}, error) + func (d Dec) Mul(d2 Dec) Dec + func (d Dec) MulInt(i *big.Int) Dec + func (d Dec) MulInt64(i int64) Dec + func (d Dec) MulTruncate(d2 Dec) Dec + func (d Dec) Neg() Dec + func (d Dec) Quo(d2 Dec) Dec + func (d Dec) QuoInt(i *big.Int) Dec + func (d Dec) QuoInt64(i int64) Dec + func (d Dec) QuoRoundUp(d2 Dec) Dec + func (d Dec) QuoTruncate(d2 Dec) Dec + func (d Dec) RoundInt() *big.Int + func (d Dec) RoundInt64() int64 + func (d Dec) String() string + func (d Dec) Sub(d2 Dec) Dec + func (d Dec) TruncateDec() Dec + func (d Dec) TruncateInt() *big.Int + func (d Dec) TruncateInt64() int64