BINARYw. Format

Converts numeric values to binary representation.
Category: Numeric
Alignment: left

Syntax

BINARYw.

Syntax Description

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

Comparisons

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

Example

put @1 x binary8.;
Value of x
Result
----+----1
123.45
01111011
123
01111011
-123
10000101