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:
class decimal;
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: