Chapter Contents

Previous

Next
IB

IB



Writes numbers in integer binary (fixed-point) format

Numeric
Width range: 1- 8
Default width: 4
Decimal range: 0- 10
Alignment: left
CMS specifics: twos complement notation


Syntax
Details
See Also

Syntax

IBw.

w
specifies the field width of the output value.

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


Details

Negative values are stored in twos complement notation under CMS. The following table shows several examples of the IB format.

Decimal Number Format Integer Binary Data Pattern Written Actual Numeric Value
1234 ib4. '000004D2'x 1234
-1234 ib4. 'FFFFFB2E'x -1234
12.34 ib4. '0000000C'x 12
12.34 ib4.2 '000004D2'x 1234
123456789 ib4. '075BCD15'x 123456789
1234 ib6.2 '00000001E208'x 123400
-1234 ib6.2 'FFFFFFFE1DF8'x -123400


See Also


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.