Versions in this module Expand all Collapse all v0 v0.1.1 Jul 13, 2026 v0.1.0 Jul 13, 2026 Changes in this version + type Decimal struct + func MustParse(s string) Decimal + func New(coef int64, scale int32) Decimal + func NewFromBig(coef *big.Int, scale int32) Decimal + func Parse(s string) (Decimal, error) + func Zero() Decimal + func (d *Decimal) UnmarshalJSON(b []byte) error + func (d Decimal) Abs() Decimal + func (d Decimal) Add(b Decimal) Decimal + func (d Decimal) Cmp(b Decimal) int + func (d Decimal) Coef() *big.Int + func (d Decimal) Equal(b Decimal) bool + func (d Decimal) IsZero() bool + func (d Decimal) MarshalJSON() ([]byte, error) + func (d Decimal) Mul(b Decimal) Decimal + func (d Decimal) Neg() Decimal + func (d Decimal) Quo(b Decimal, scale int32) Decimal + func (d Decimal) Rescale(scale int32) Decimal + func (d Decimal) Round(scale int32) Decimal + func (d Decimal) Scale() int32 + func (d Decimal) Sign() int + func (d Decimal) String() string + func (d Decimal) Sub(b Decimal) Decimal