LOTUSSCRIPT LANGUAGE


Bin function
Example

Returns the binary representation of a number as a string.

Syntax

Bin[$] ( numExpr )

Elements

numExpr


Return value

Bin returns a Variant of DataType 8 (String), and Bin$ returns a String.

Return values will only include the characters 0 and 1. The maximum length of the return value is 32 characters.

Usage

If the data type of numExpr is not Integer or Long, then LotusScript attempts to convert it to a Long. If it cannot be converted, a type mismatch error occurs.

Example
See Also