Home / lang / bin 
Bin$
Syntax
String = Bin$ ( Number AS Long [ , Digits AS Integer ] ) AS String

Gets the binary representation of a number.

If Digits is specified, the representation is padded with unnecessary zeros so that Digits digits are returned.

Examples

PRINT Bin$(77)
<hr>1001101
PRINT Bin$(77, 16)
<hr>0000000001001101

See also

Formatting functions