BIN

The BIN function formats an integer value as a binary string. The string returned contains just the binary representation of the integer with no prefix added.

Syntax

BIN( INT value )

Parameters

value
The integer value to format.

Return value

A STRING containing the integer value formatted into binary.

Example

INT value := 0x59;

PRINT("Value = 0b", BIN(value), "\n");

The output will be:

Value = 0b01011001

See Also