Versions in this module Expand all Collapse all v0 v0.0.2 May 30, 2020 v0.0.1 May 29, 2020 Changes in this version + const DecimalBase + const DefaultDecimalPrec + const DigitsPerWord + const MaxBase + const MaxExp + const MaxPrec + const MinExp + type Accuracy int8 + const Above + const Below + const Exact + func (i Accuracy) String() string + type Decimal struct + func NewDecimal(x int64, exp int) *Decimal + func ParseDecimal(s string, base int, prec uint, mode RoundingMode) (d *Decimal, b int, err error) + func (x *Decimal) Acc() Accuracy + func (x *Decimal) Append(buf []byte, fmt byte, prec int) []byte + func (x *Decimal) BitsExp() ([]Word, int32) + func (x *Decimal) Cmp(y *Decimal) int + func (x *Decimal) Float(z *big.Float) *big.Float + func (x *Decimal) Float32() (float32, Accuracy) + func (x *Decimal) Float64() (float64, Accuracy) + func (x *Decimal) Format(s fmt.State, format rune) + func (x *Decimal) GobEncode() ([]byte, error) + func (x *Decimal) Int(z *big.Int) (*big.Int, Accuracy) + func (x *Decimal) Int64() (int64, Accuracy) + func (x *Decimal) IsInf() bool + func (x *Decimal) IsInt() bool + func (x *Decimal) IsZero() bool + func (x *Decimal) MantExp(mant *Decimal) (exp int) + func (x *Decimal) MarshalText() (text []byte, err error) + func (x *Decimal) MinPrec() uint + func (x *Decimal) Mode() RoundingMode + func (x *Decimal) Prec() uint + func (x *Decimal) Rat(z *big.Rat) (*big.Rat, Accuracy) + func (x *Decimal) Sign() int + func (x *Decimal) Signbit() bool + func (x *Decimal) String() string + func (x *Decimal) Text(format byte, prec int) string + func (x *Decimal) Uint64() (uint64, Accuracy) + func (z *Decimal) Abs(x *Decimal) *Decimal + func (z *Decimal) Add(x, y *Decimal) *Decimal + func (z *Decimal) Copy(x *Decimal) *Decimal + func (z *Decimal) FMA(x, y, u *Decimal) *Decimal + func (z *Decimal) GobDecode(buf []byte) error + func (z *Decimal) Mul(x, y *Decimal) *Decimal + func (z *Decimal) Neg(x *Decimal) *Decimal + func (z *Decimal) Parse(s string, base int) (f *Decimal, b int, err error) + func (z *Decimal) Quo(x, y *Decimal) *Decimal + func (z *Decimal) Scan(s fmt.ScanState, ch rune) error + func (z *Decimal) Set(x *Decimal) *Decimal + func (z *Decimal) SetBitsExp(mant []Word, exp int64) *Decimal + func (z *Decimal) SetFloat(x *big.Float) *Decimal + func (z *Decimal) SetFloat64(x float64) *Decimal + func (z *Decimal) SetInf(signbit bool) *Decimal + func (z *Decimal) SetInt(x *big.Int) *Decimal + func (z *Decimal) SetInt64(x int64) *Decimal + func (z *Decimal) SetMantExp(mant *Decimal, exp int) *Decimal + func (z *Decimal) SetMode(mode RoundingMode) *Decimal + func (z *Decimal) SetPrec(prec uint) *Decimal + func (z *Decimal) SetRat(x *big.Rat) *Decimal + func (z *Decimal) SetString(s string) (*Decimal, bool) + func (z *Decimal) SetUint64(x uint64) *Decimal + func (z *Decimal) Sqrt(x *Decimal) *Decimal + func (z *Decimal) Sub(x, y *Decimal) *Decimal + func (z *Decimal) UnmarshalText(text []byte) error + type ErrNaN struct + func (err ErrNaN) Error() string + type RoundingMode byte + const AwayFromZero + const ToNearestAway + const ToNearestEven + const ToNegativeInf + const ToPositiveInf + const ToZero + func (i RoundingMode) String() string + type Word uint