Versions in this module Expand all Collapse all v0 v0.60.1 Sep 27, 2024 Changes in this version + type Dec struct + func Add(x Dec, 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 Dec, y Dec) (Dec, error) + func (x Dec) Add(y Dec) (Dec, error) + func (x Dec) Cmp(y Dec) int + func (x Dec) Int64() (int64, error) + func (x Dec) IsEqual(y Dec) bool + 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)