BIN$ function

Purpose: BIN$ converts an integer to a binary string.


 Syntax:

 RetStr$ = BIN$(Integer%)

 Parameters:

  • Integer% Integer to be converted to binary.

 Return Value:

  • RetStr$, the reurn value, is a string containing binary representation of the Integer% parameter.

Example:


 DIM RetStr$
 
 RetStr$ = BIN$(12345)
 
 PRINT RetStr$

Result:

11000000111001