Previous Page
|
Next Page
BINARY
w
.
d
Informat
Converts positive binary values to integers.
Category:
Numeric
Syntax
Details
Example
Syntax
BINARY
w
.
d
Syntax Description
w
specifies the width of the input field.
Default:
8
Range:
1–64
d
specifies the power of 10 by which to divide the value. SAS uses the
d
value even if the data contain decimal points. This argument is optional.
Range:
0–31
Details
Use only the character digits 1 and 0 in the input, with no embedded blanks. BINARY
w
.
d
ignores leading and trailing blanks.
BINARY
w
.
d
cannot read negative values. It treats all input values as positive (unsigned).
Example
input @1 value binary8.1;
Data Line
Result
----+----1
00001111
1.5
Copyright © SAS Institute Inc. All rights reserved.
Previous Page
|
Next Page
|
Top of Page