Defining decimal-type constants
Use the following numerical limits to define the decimal-type constant
value in assignments and expressions. The decimal.h header
file contains these predefined values.
- The smallest number that is valid for a decimal data type
- DEC_MIN
- -9999999999999999999999999999999D
- The largest positive number that is valid for a decimal data type
- DEC_MAX
- +9999999999999999999999999999999D
- The smallest number greater than zero that is valid for a decimal
data type
- DEC_EPSILON
- .0000000000000000000000000000001D
- Maximum number of significant digits that decimal data types can
hold
- DEC_DIG
- 31
- Maximum number of decimal places that decimal data types can hold
- DEC_PRECISION
- 31