Binary integer decimal: Difference between revisions

Content deleted Content added
WikiCleanerBot (talk | contribs)
m v2.05b - Bot T18 CW#553 - Fix errors for CW project (<nowiki> tags)
Tags: WPCleaner Reverted
removed a sentence unrelated to BID from the LEDE and joined the remaining last two sentences
 
(One intermediate revision by the same user not shown)
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 / coefficient ''c'' (between 0 and 10<sup>''p''</sup>−1). The value encoded is (&minus;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). This makes conversion to decimal form efficient, alreadywhile in software implemented algorithms ( see decNumber library by Mike Cowlishaw / IBM ) and even more with specialized decimal [[Arithmetic logic unit|ALUs]] as available in some IBM machines / CPUs ( "power" ). In the '''binary integer decimal''' ('''BID''') encoding, it is encoded as a binary number with bit values increasing by factor two from right to left. Position 0: value 2^0 -> 1, position 1: value 2^1 -> 2, and so on.
 
==Format==