BIN$ function

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


 Syntax:

 RetStr$ = BIN$(Integer%)

 Parameters:

  • RetStr$ Returned string containing binary representation of Integer% parameter.
  • Integer% Integer to be converted to binary.

Example:


 RetStr$ = BIN$(12345)

Result: RetStr$ will contain 11000000111001