Lably
Skip to content

Decimal64 floating-point format

64-bit computer number format

  • 7 min read
  • 3 chapters

Related on Lably

Through Computing, Significant figures and Infinity

Format

Decimal64 values are categorized as normal or subnormal (denormal) numbers and can be encoded in either binary integer decimal (BID) or densely packed decimal (DPD) formats. Normal values can possess 16-digit precision ranging from ±1.000000000000000×10−383 to ±9.999999999999999×10384. In addition to normal and subnormal numbers, the format also includes signed zeros, infinities, and NaNs.

The binary format of identical size accommodates a spectrum from denormal-min ±5×10−324, through normal-min with complete 53-bit precision ±2.2250738585072014×10−308, to maximum ±1.7976931348623157×10+308.

Because the significand for the IEEE 754, decimal formats are not normalized and most values with less than 16 significant digits have multiple possible representations; 1000000 × 10−2 = 100000 × 10−1 = 10000 × 100 = 1000 × 101 all have the value 10000. These sets of representations for the same value are called cohorts. The different members can be used to denote how many digits of the value are known precisely. Each signed zero has 768 possible representations (1536 for all zeros, in two different cohorts).

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Computing and communication