Versions in this module Expand all Collapse all v0 v0.0.4 Jul 18, 2024 v0.0.3 Jul 18, 2024 Changes in this version + type Dec struct + func Add(x, y Dec) (Dec, error) + func NewDecFromInt64(x int64) Dec + func NewDecFromString(s string) (Dec, error) + func NewNonNegativeDecFromString(s string) (Dec, error) + func NewPositiveDecFromString(s string) (Dec, error) + func SubNonNegative(x, y Dec) (Dec, error) + func (x Dec) Add(y Dec) (Dec, error) + func (x Dec) Cmp(y Dec) int + func (x Dec) Equal(y Dec) bool + func (x Dec) Int64() (int64, error) + func (x Dec) IsNegative() bool + func (x Dec) IsPositive() bool + func (x Dec) IsZero() bool + func (x Dec) Quo(y Dec) (Dec, error) + func (x Dec) String() string + func (x Dec) Sub(y Dec) (Dec, error)