Chapter Contents

Previous

Next
BINARYw.

BINARYw.



Converts numeric values to binary representation

Category: Numeric
Alignment: left


Syntax
Syntax Description
Details
Comparisons
Examples

Syntax

BINARYw.

Syntax Description

w
specifies the width of the output field.
Default: 8
Range: 1-64


Details

The BINARYw. format writes any negative numbers as all 1s.


Comparisons

BINARYw. converts numeric values to binary representation. The $BINARYw. format converts character values to binary representation.


Examples

put @1 x binary8.;

Values Results

----+----1
123.45
01111011
123
01111011
-123
10000101


Chapter Contents

Previous

Next

Top of Page

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