L2BIN()

Advantage Concepts

Advantage Expression Engine function that converts a long integer numeric value to a character string formatted as a 32-bit binary integer

Syntax

L2BIN( <nLongInteger> ) --> cBinaryInteger

Parameters

<nLongInteger>

A long integer numeric value to be converted. Decimal digits are truncated.

Return Values

L2BIN() returns a four-byte character string containing a 32-bit binary integer.

Remarks

L2BIN() is a low-level file function that converts a long integer numeric value to a character string formatted as a 32-bit binary integer—least significant byte first.

Note Advantage Expression Engine functions can be used in expressions such as record filter expressions and index expressions. They are not necessarily scalars supported within SQL statements. For a list of supported SQL scalar functions, see Supported Scalar Functions.

See Also

I2BIN()

CHR()