DRAFT IEEE Standard for Binary Floating-Point Arithmetic - Sonic.net
DRAFT IEEE Standard for Binary Floating-Point Arithmetic - Sonic.net
DRAFT IEEE Standard for Binary Floating-Point Arithmetic - Sonic.net
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>DRAFT</strong> <strong>IEEE</strong> <strong>Standard</strong> <strong>for</strong> <strong>Floating</strong>-<strong>Point</strong> <strong>Arithmetic</strong> – 2003 August 12 10:20<br />
A 32-bit single <strong>for</strong>mat number X is divided as shown in Fig 1. The value v of X is<br />
inferred from its constituent fields thus<br />
6. If e = 255 and f != 0 , then v is NaN regardless of s<br />
7. If e = 255 and f = 0 , then v = (–1) s ¥<br />
8. If 0 < e < 255 , then v = (–1) s 2 e–127 ( 1 . f )<br />
9. If e = 0 and f != 0 , then v = (–1) s 2 –126 ( 0 . f ) ( denormalized numbers)<br />
10. If e = 0 and f = 0 , then v = (–1) s 0 (zero)<br />
Figure 1. Single Format<br />
msb means most significant bit<br />
lsb means least significant bit<br />
1 8 23 ... widths<br />
+-+-------+-----------------------+<br />
|s| e | f |<br />
+-+-------+-----------------------+<br />
msb lsb msb lsb ... order<br />
3.2.2. Double<br />
A 64-bit double <strong>for</strong>mat number X is divided as shown in Fig 2. The value v of X<br />
is inferred from its constituent fields thus<br />
1. If e = 2047 and f != 0 , then v is NaN regardless of s<br />
2. If e = 2047 and f = 0 , then v = (–1) s ¥<br />
3. If 0 < e < 2047 , then v = (–1) s 2 e—1023 ( 1 . f )<br />
4. If e = 0 and f != 0 , then v = (–1) s 2 —1022 ( 0 . f ) ( denormalized<br />
numbers)<br />
5. If e = 0 and f = 0 , then v = (–1) s 0 (zero)<br />
Figure 2. Double Format<br />
1 11 52 ... widths<br />
+-+-------+-----------------------+<br />
|s| e | f |<br />
Copyright © 2003 by the Institute of Electrical and Electronics Engineers, Inc. This document is an unapproved<br />
draft of a proposed <strong>IEEE</strong>-SA <strong>Standard</strong> - USE AT YOUR OWN RISK. See statement on page 1.<br />
Page 34