BINARYw. Format

Converts numeric values to binary representation.

Category: Numeric
Alignment: Left

Syntax

BINARYw.

Arguments

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

Statements
Results
----+----1
select put (123.45, binary8.);
01111011
select put (123, binary8.);
01111011
select put (–123, binary8.);
10000101

See Also

Formats:
Last updated: February 23, 2017