Previous Page | Next Page

Informats

BINARYw.d Informat



Converts positive binary values to integers.
Category: Numeric

Syntax
Syntax Description
Details
Examples

Syntax

BINARYw.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. BINARYw.d ignores leading and trailing blanks.

BINARYw.d cannot read negative values. It treats all input values as positive (unsigned).


Examples

input @1 value binary8.1;

Data Line Results
----+----1----+

00001111
1.5

Previous Page | Next Page | Top of Page