decimal
Adaptive, arbitrary precision decimal with arithmetic exceptions
decimal is an adaptive, arbitrary precision decimal sign-magnitude integer type.
The type definition for arbitrary precision decimal integers in Universal is:
The decimal type will dynamically adapt to the precision requirements of computation.
The decimal type can be compiled with or without exceptions using a compile guard: DECIMAL_THROW_ARITHMETIC_EXCEPTION, to be set before including the type in your module, like so:
By default, exceptions are not enabled. They are defined, but not thrown, so client code will work in either configuration.
The decimal type is a BigInt type useful for arbitrary precision integer applications. It uses the decimal system to represent values.
Last updated