bin Function
Function: |
Converts unsigned 16-bit numeric value (word) into its binary string representation. |
Syntax: |
bin(num as integer) as string |
See Also: |
Part |
Description |
num |
Value to convert. |
Details
The 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'