![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS Companion for the OS/390 Environment |
| Representation of Floating-Point Numbers |
SEEEEEEE MMMMMMMM MMMMMMMM MMMMMMMM byte 1 byte 2 byte 3 byte 4 MMMMMMMM MMMMMMMM MMMMMMMM MMMMMMMM byte 5 byte 6 byte 7 byte 8
(1/4 + 1/8 + 1/64) * (16**2)
100.
.100
.100*(10**3)=100
The second example is in base 16. In hexadecimal notation, 100 (base 10) is written as follows:
64.
.64
.01100100
Finally, the value .01100100 can be represented in the following expression:
(1/2)**2 + (1/2)**3 + (1/2)**6 = 1/4 + 1/8 + 1/64
01000010 01100100 00000000 00000000 00000000 00000000 00000000 00000000
'3F80000000000000'x
| Representation of Integers |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.