Chapter Contents

Previous

Next
RB

RB



Writes real binary (floating-point) data

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

w
specifies the field width of the output value, in bytes.

d
specifies a multiplier for the output value. If the format includes a d value, the output value is multiplied by 10d.


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.