Chapter Contents |
Previous |
Next |
RB |
Numeric | |
Width range: | 2- 8 |
Default width: | 4 |
Decimal range: | 0- 10 |
Alignment: | left |
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 several decimal numbers are written as floating-point numbers using the RB format.
Decimal Number | Format | Real Binary Data Pattern Written | Actual Numeric Value | |
---|---|---|---|---|
123 | rb8. | '427B000000000000'x | 123 | |
123 | rb8.1 | '434CE00000000000'x | 1230 | |
123 | rb8.2 | '44300C0000000000'x | 12300 | |
-123 | rb8. | 'C27B000000000000'x | -123 | |
1234 | rb8. | '434D200000000000'x | 1234 | |
1234 | rb2. | '434D'x | 1232 | |
12.3 | rb8. | '41C4CCCCCCCCCCCC'x | 12.29999999... |
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.