Bin function (LotusScript Language)

Returns the binary representation of a number as a string.

Syntax

Bin[$] ( numExpr )

Elements

numExpr

Any numeric expression. If numExpr evaluates to a number with a fractional part, LotusScript® rounds it to the nearest integer before deriving its binary representation.

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


Additional Documentation | Trademarks |