Chapter Contents |
Previous |
Next |
RB |
Numeric | |
Width range: | 2- 8 |
Default width: | 4 |
Decimal range: | 0- 10 |
CMS specifics: | IBM floating-point format |
Syntax | |
Details | |
See Also |
Syntax |
RBw.d |
Details |
The format of floating-point numbers is specific to CMS. (See Representation of Floating-Point Numbers for a description of the format used to store floating-point numbers.) The following table shows how data that represent several decimal numbers are read as floating-point numbers using the RBw.d informat.
Data Pattern Read | Actual Numeric Value | Informat | Resulting Numeric Value | |
---|---|---|---|---|
'427B000000000000'x | 123 | rb8. | 123 | |
'434CE00000000000'x | 1230 | rb8.1 | 123 | |
'44300C0000000000'x | 12300 | rb8.2 | 123 | |
'C27B000000000000'x | -123 | rb8. | -123 | |
'434D200000000000'x | 1234 | rb8. | 1234 | |
'41C570A3D70A3D70'x | 12.34 | rb8. | 12.34 |
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.