Converts positive binary values to integers.
-
w
-
specifies the width of the input field.
-
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.
Use only the character digits 1 and 0
in the input, with no embedded blanks. BINARYw.d ignores leading and trailing
blanks.
BINARYw.d cannot read negative values. It treats all input values as
positive (unsigned).
input @1 value binary8.1;
Data Line |
Results |
----+----1----+
|
|
00001111
|
1.5
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.