Content deleted Content added
No edit summary |
removed a sentence unrelated to BID from the LEDE and joined the remaining last two sentences |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1:
{{Use dmy dates|date=May 2019|cs1-dates=y}}
{{floating-point}}
{{Cleanup|reason=This article more describes DPD encoding and IEEE 754 encoding in general, rather than BID encoding which it should acc. it's title.|date=
The [[IEEE 754-2008]] standard includes decimal floating-point number formats in which the [[significand]] and the exponent (and the payloads of [[NaN]]s) can be encoded in two ways, referred to as '''binary encoding''' and ''decimal encoding''.<ref>{{cite web
|title=DRAFT Standard for Floating Point Arithmetic P754
Line 19:
-->
Both formats break a number down into a sign bit ''s'', an exponent ''q'' (between ''q''<sub>min</sub> and ''q''<sub>max</sub>), and a ''p''-digit significand ''c'' (between 0 and 10<sup>''p''</sup>−1). The value encoded is (−1)<sup>''s''</sup>×10<sup>''q''</sup>×''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]] (DPD) encoding)
==Format==
|