package
3.4.0+incompatible
Repository: https://github.com/ericlagergren/decimal.git
Documentation: pkg.go.dev
# Functions
Canonical sets z to the canonical form of z.
CmpTotal compares x and y in a manner similar to the Big.Cmp, but allows ordering of all abstract representations.
CmpTotalAbs is like CmpTotal but instead compares the absolute values of x and y.
CopyAbs is like Abs, but no flags are changed and the result is not rounded.
Mantissa returns the mantissa of x and reports whether the mantissa fits into a uint64 and x is finite.
Max returns the greater of the provided values.
MaxAbs returns the greater of the absolute value of the provided values.
Min returns the lesser of the provided values.
MinAbs returns the lesser of the absolute value of the provided values.
NextMinus sets z to the smallest representable number that's smaller than x and returns z.
NextPlus sets z to the largest representable number that's larger than x and returns z.
SameQuantum reports whether x and y have the same exponent (scale).
SetSignbit sets z to -z if sign is true, otherwise to +z.
# Constants
IsCanonical is true since Big decimals are always normalized.
Radix is the base in which decimal arithmetic is effected.