BIN$

This command will return a 32 character string equivalent to the binary representation of the specified value provided.

  Syntax
Return String=BIN$(Value)
  Parameters
Value
Integer
The number this command will use

  Returns

The value returned is the binary representation string of the specified value

  Description

The value provided should be an integer value.

  Example Code
PRINT "NUMBER:";42;"  BINARY:";BIN$(42);"  HEX:";HEX$(42)
WAIT KEY
  See also

TEXT Commands Menu
Index