Bin$

String = Bin$ ( Number [ , Digits ] )

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)
1001101

Print Bin$(77, 16)
0000000001001101

See also