Documentation ¶
Index ¶
- type Decimal
- func (d *Decimal) Add(decimal Decimal) Decimal
- func (d *Decimal) Div(decimal Decimal) Decimal
- func (d *Decimal) Equal(decimal Decimal) bool
- func (d *Decimal) IsNegative() bool
- func (d *Decimal) IsPositive() bool
- func (d *Decimal) IsZero() bool
- func (d *Decimal) Mul(decimal Decimal) Decimal
- func (d *Decimal) Scan(value interface{}) error
- func (d *Decimal) String() string
- func (d *Decimal) Sub(decimal Decimal) Decimal
- func (d *Decimal) Truncate(precision int32) Decimal
- func (d Decimal) Value() (driver.Value, error)
- type NullDecimal
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 NewFromFloat ¶
func NewFromInt ¶
func NewFromString ¶
func (*Decimal) IsNegative ¶
func (*Decimal) IsPositive ¶
type NullDecimal ¶
func (*NullDecimal) Scan ¶
func (d *NullDecimal) Scan(value interface{}) error
Scan implements the sql.Scanner interface for database deserialization.
Click to show internal directories.
Click to hide internal directories.