Chapter Contents

Previous

Next
BINARYw.d

BINARYw.d



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
optionally specifies the power of 10 by which to divide the value. SAS uses the d value even if the data contain decimal points.
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 Lines Results
----+----1----+

00001111
1.5


Chapter Contents

Previous

Next

Top of Page

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