
Chapter 15 Functions
15-51
BIN$ (Function) [Conforms to SLIM]
Function
Converts the value of an expression to a binary character string.
Format
BIN$ (<Expression>)
Explanation
This statement converts the value designated in <Expression> to a binary form
and converts the value to a character string.
Related Terms
CHR$, HEX$, STR$, VAL
Example
DIM li1 As Integer
DEFSTR ls1, ls2
ls1 = BIN$(20) 'Converts 20 to a binary form and assigns it to ls1.
ls2 = BIN$(li1) 'Converts li1 to a binary form and assigns it to ls2.
Commentaires sur ces manuels