bin Function

Function:

Converts unsigned 16-bit numeric value (word) into its binary string representation.

Syntax:

bin(num as integer) as string

See Also:

str, lstr, stri, lstri, lbin, hex, lhex, val, lval


Part

Description

num

Value to convert.

Details

Standard "&b" prefix is added at the beginning of the string.

Examples

** Tibbo Basic **


dim s as string

s = bin(34) ' result will be '&b100010'