Chapter Contents |
Previous |
Next |
RBw.d |
Numeric | |
Width range: | 2-8 bytes |
Default width: | 4 |
Decimal range: | 0-10 |
Alignment: | left |
OS/390 specifics: | IBM floating-point format |
Details | |
See Also |
Details |
The format of floating-point numbers is host-specific. See Representation of Floating-Point Numbers for a description of the format that is used to store floating-point numbers under OS/390.
Here are some examples of how decimal numbers are written as floating-point numbers using the RBw.d format:
Value | Format | Results (Hex) | Notes | |
---|---|---|---|---|
123 | rb8.1 |
434CE00000000000 |
||
123 | rb8.2 |
44300C0000000000 |
||
-123 | rb8. |
C27B000000000000 |
||
1234 | rb8. |
434D200000000000 |
||
1234 | rb2. |
434D |
truncation occurred | |
12.25 | rb8. |
41C4000000000000 |
Note: In these examples, the Value
column
represents the value of the data, and the Results column shows a hexadecimal
representation of the bit pattern written by the corresponding format. (You
cannot view this data in a text editor, unless you can view it in hexadecimal
representation.)
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.