Documentation ¶
Index ¶
- type 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 (d Decimal) Integer(precision uint8) Integer
- 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
- type Integer
- func (a Integer) Add(b Integer) Integer
- func (a Integer) Cmp(b Integer) int
- func (i Integer) Decimal() Decimal
- func (a Integer) Div(b Integer) Integer
- func (a Integer) IsNegative() bool
- func (a Integer) IsPositive() bool
- func (a Integer) IsZero() bool
- func (i Integer) MarshalJSON() ([]byte, error)
- func (a Integer) Mul(b Integer) Integer
- func (i Integer) Persist() string
- func (i Integer) Precision() uint8
- func (a Integer) Sub(b Integer) Integer
- func (i Integer) Value() int64
- func (i Integer) Zero() Integer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decimal ¶
func FromString ¶
func NewDecimal ¶
func (Decimal) PresentCeil ¶
func (Decimal) PresentFloor ¶
func (Decimal) RoundFloor ¶
type Integer ¶
type Integer struct {
// contains filtered or unexported fields
}
func NewInteger ¶
func (Integer) IsNegative ¶
func (Integer) IsPositive ¶
func (Integer) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.