# Functions
No description provided by the author
FormatPrecDec formats a decimal (as encoded in protobuf) into a value-rendered string following ADR-050.
maximum decimal between two.
minimum decimal between two.
PrecDecimal from string, panic on error.
create a new PrecDec from integer assuming whole number.
create a new PrecDec from big integer assuming whole numbers CONTRACT: prec <= Precision.
create a new PrecDec from big integer assuming whole numbers CONTRACT: prec <= Precision.
create a new PrecDec from big integer assuming whole numbers CONTRACT: prec <= Precision.
create a new PrecDec from big integer with decimal place at prec CONTRACT: prec <= Precision.
create a decimal from an input decimal string.
create a new PrecDec from integer with decimal place at prec CONTRACT: prec <= Precision.
No description provided by the author
No description provided by the author
intended to be used with require/assert: require.True(PrecDecEq(...)).
test if two decimal arrays are equal.
No description provided by the author
SortablePrecDecBytes returns a byte slice representation of a PrecDec that can be sorted.
ValidSortablePrecDec ensures that a PrecDec is within the sortable bounds, a PrecDec can't have a precision of less than 10^-18.
No description provided by the author
# Constants
No description provided by the author
bits required to represent the above precision Ceiling[Log2[10^Precision - 1]].
number of decimal places.
# Variables
PrecDecimal errors.
PrecDecimal errors.
PrecDecimal errors.
MaxSortablePrecDec is the largest PrecDec that can be passed into SortablePrecDecBytes() Its negative form is the least PrecDec that can be passed in.