Versions in this module Expand all Collapse all v0 v0.1.1 Oct 12, 2023 Changes in this version type Decimal + func (a Decimal) Source() decimal.Decimal v0.1.0 Oct 17, 2022 Changes in this version + type Decimal struct + func FromFloat(source float64) Decimal + func FromString(source string) Decimal + func NewDecimal(value int64, decimals int32) Decimal + func Zero() Decimal + func (a Decimal) Add(b Decimal) Decimal + func (a Decimal) Ceil() Decimal + func (a Decimal) Cmp(b Decimal) int + func (a Decimal) Div(b Decimal) Decimal + func (a Decimal) Divisible(b Decimal) bool + func (a Decimal) Equal(b Decimal) bool + func (a Decimal) Exhausted() bool + func (a Decimal) Float64() float64 + func (a Decimal) Floor() Decimal + func (a Decimal) Mul(b Decimal) Decimal + func (a Decimal) Neg() Decimal + func (a Decimal) Persist() string + func (a Decimal) PresentCeil() string + func (a Decimal) PresentFloor() string + func (a Decimal) Round(decimals int32) Decimal + func (a Decimal) RoundCeil(decimals int32) Decimal + func (a Decimal) RoundFloor(decimals int32) Decimal + func (a Decimal) Sub(b Decimal) Decimal + func (d Decimal) Integer(precision uint8) Integer + type Integer struct + func NewInteger(value int64, decimals uint8) Integer + func (a Integer) Add(b Integer) Integer + func (a Integer) Cmp(b Integer) int + func (a Integer) Div(b Integer) Integer + func (a Integer) IsNegative() bool + func (a Integer) IsPositive() bool + func (a Integer) IsZero() bool + func (a Integer) Mul(b Integer) Integer + func (a Integer) Sub(b Integer) Integer + func (i Integer) Decimal() Decimal + func (i Integer) MarshalJSON() ([]byte, error) + func (i Integer) Persist() string + func (i Integer) Precision() uint8 + func (i Integer) Value() int64 + func (i Integer) Zero() Integer