Currently numbers are "normalised" so that there are trailing zeros,
for example 1 is stored as a significand 100000000000000 with an exponent of -15
Generally outputs are normalised from ParseDecimal and arithmetic functions.
Some problems are:
- Errors may arise when Decimal encodings are parsed in using methods other then strings
- Arithmetic functions currently have a
remove trailing zeros function to avoid integer overflow
If Decimal64s are stored without trailing zeros arithmetic functions may be faster
Currently numbers are "normalised" so that there are trailing zeros,
for example
1is stored as a significand100000000000000with an exponent of-15Generally outputs are normalised from ParseDecimal and arithmetic functions.
Some problems are:
remove trailing zerosfunction to avoid integer overflowIf Decimal64s are stored without trailing zeros arithmetic functions may be faster