# Functions
Avg returns the average value of the provided first and rest Decimals.
Max returns the largest Decimal that was passed in the arguments.
Min returns the smallest Decimal that was passed in the arguments.
New returns a new fixed-point decimal, value * 10 ^ exp.
NewFromBigInt returns a new Decimal from a big.Int, value * 10 ^ exp.
NewFromFloat converts a float64 to Decimal.
NewFromFloat converts a float32 to Decimal.
NewFromFloatWithExponent converts a float64 to Decimal, with an arbitrary number of fractional digits.
NewFromString returns a new Decimal from a string representation.
RequireFromString returns a new Decimal from a string representation or panics if NewFromString would have returned an error.
Sum returns the combined total of the provided first and rest Decimals.
# Variables
DivisionPrecision is the number of decimal places in the result when it doesn't divide exactly.
MarshalJSONWithoutQuotes should be set to true if you want the decimal to be JSON marshaled as a number, instead of as a string.
Zero constant, to make computations faster.
# Structs
Decimal represents a fixed-point decimal.
NullDecimal represents a nullable decimal with compatibility for scanning null values from the database.