Documentation ¶
Index ¶
- type Decimal
- func (d Decimal) Abs() Decimal
- func (d Decimal) Add(other Decimal) Decimal
- func (d Decimal) Ceil() Decimal
- func (d Decimal) Decimal128() primitive.Decimal128
- func (d Decimal) Div(other Decimal) Decimal
- func (d Decimal) Equal(other Decimal) bool
- func (d Decimal) Float64() float64
- func (d Decimal) Floor() Decimal
- func (d Decimal) GreaterThan(other Decimal) bool
- func (d Decimal) GreaterThanOrEqual(other Decimal) bool
- func (d Decimal) IsNegative() bool
- func (d Decimal) IsPositive() bool
- func (d Decimal) IsZero() bool
- func (d Decimal) LessThan(other Decimal) bool
- func (d Decimal) LessThanOrEqual(other Decimal) bool
- func (d Decimal) Mod(other Decimal) Decimal
- func (d Decimal) Mul(other Decimal) Decimal
- func (d Decimal) Neg() Decimal
- func (d Decimal) NotEqual(other Decimal) bool
- func (d Decimal) Pow(other Decimal) Decimal
- func (d Decimal) Round(places int32) Decimal
- func (d Decimal) Sign() int
- func (d Decimal) String() string
- func (d Decimal) Sub(other Decimal) Decimal
- func (d Decimal) Truncate(places int32) Decimal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decimal ¶
type Decimal struct {
// contains filtered or unexported fields
}
func NewFromDecimal128 ¶
func NewFromDecimal128(v primitive.Decimal128) Decimal
func NewFromFloat ¶
func NewFromInt ¶
func NewFromString ¶
func (Decimal) Decimal128 ¶
func (d Decimal) Decimal128() primitive.Decimal128
func (Decimal) GreaterThan ¶
func (Decimal) GreaterThanOrEqual ¶
func (Decimal) IsNegative ¶
func (Decimal) IsPositive ¶
func (Decimal) LessThanOrEqual ¶
Click to show internal directories.
Click to hide internal directories.