Versions in this module Expand all Collapse all v0 v0.0.2 Sep 27, 2020 Changes in this version + type Decimal struct + func New(value int64, exp int32) Decimal + func NewFromFloat(value float64) Decimal + func NewFromInt(value int64) Decimal + func NewFromString(value string) (Decimal, error) + 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 struct + Decimal Decimal + Valid bool + func (d *NullDecimal) Scan(value interface{}) error + func (d NullDecimal) Value() (driver.Value, error)