#B
Syntax
#Bnumber
Explanation
Logo treats a number that begins with #B as a binary number (base 2). Valid binary numbers are 0 and 1. The value of the number in the current base (as reported by :
BASE
) is output.
See also
#D
,
#H
, and
#O
.
Example
#B1001
Result: 9