Converts a number into a binary formatted string. Converts automatically into the data type dependent bit length. Same as in hexadecimal, the standard output has the least significant bit on the right with ascendig significance to the left (Big-endian).

PreprocessorThe function is also available in the Preprocessor, using constants only will not result in any machine code.

Syntax: String = Bin(Expression) Example:

  dim s as string
  s = Bin(14)  // Result: "00001110"