Previous Page | Next Page

Formats

BINARYw. Format



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

Syntax
Syntax Description
Comparisons
Examples

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.


Examples

put @1 x binary8.;

Value of x Results

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

Previous Page | Next Page | Top of Page