Binary integer decimal
Floating-point formats |
---|
IEEE 754 |
|
Other |
Alternatives |
Tapered floating point |
The IEEE 754-2008 standard includes an encoding format for decimal floating point numbers in which the significand and the exponent (and the payloads of NaNs) can be encoded in two ways, referred to in the draft as binary encoding and decimal encoding.[1]
Both formats break a number down into a sign bit s, an exponent q (between qmin and qmax), and a p-digit significand c (between 0 and 10p−1). The value encoded is (−1)s×10q×c. In both formats the range of possible values is identical, but they differ in how the significand c is represented. In the decimal encoding, it is encoded as a series of p decimal digits (using the densely packed decimal encoding). This makes conversion to decimal form efficient, but requires a specialized decimal [[Arithmetic logic unit{{}} Archived 2016-03-24 at the Wayback Machine
- ^ "DRAFT Standard for Floating Point Arithmetic P754" (PDF). 2006-10-04. Retrieved 2007-07-01.[permanent dead link]