Versions in this module Expand all Collapse all v0 v0.15.1 Jul 6, 2022 Changes in this version + func ScaleBytes(s string, scale uint8) []byte + type Decimal struct + func Float64ToDecimal(f float64) (Decimal, error) + func Float64ToDecimalScale(f float64, scale uint8) (Decimal, error) + func Int64ToDecimalScale(v int64, scale uint8) Decimal + func StringToDecimalScale(v string, outScale uint8) (Decimal, error) + func (d *Decimal) IsPositive() bool + func (d *Decimal) SetInteger(integer uint32, ind uint8) + func (d *Decimal) SetPositive(positive bool) + func (d *Decimal) SetPrec(prec uint8) + func (d *Decimal) SetScale(scale uint8) + func (d Decimal) BigInt() big.Int + func (d Decimal) Bytes() []byte + func (d Decimal) String() string + func (d Decimal) ToFloat64() float64 + func (d Decimal) UnscaledBytes() []byte