decimal64 floating-point format
In computing, decimal64 is a decimal floating-point computer numbering format that occupies 8 bytes (64 bits) in computer memory. It is intended for applications where it is necessary to emulate decimal rounding exactly, such as financial and tax computations.
Floating-point formats |
---|
IEEE 754 |
|
Other |
Alternatives |
Decimal64 supports 16 decimal digits of significand and an exponent range of −383 to +384, i.e. ±0.000000000000000×10 −383 to ±9.999999999999999×10 384. (Equivalently, ±0000000000000000×10 −398 to ±9999999999999999×10 369.) In contrast, the corresponding binary format, which is the most commonly used type, has an approximate range of ±0.000000000000001×10 −308 to ±1.797693134862315×10 308. Because the significand is not normalized, most values with less than 16 significant digits have multiple possible representations; 1 × 102=0.1 × 103=0.01 × 104, etc. Zero has 768 possible representations (1536 if both signed zeros are included).
Decimal64 floating point is a relatively new decimal floating-point format, formally introduced in the 2008 version of IEEE 754 as well as with ISO/IEC/IEEE 60559:2011.