&B (Numerical prefix)

A number may be expressed in binary form in SmileBasic by using the prefix. For a numeric literal,  is converted to , so for example   gives  , but   gives.

If more than 20 bits follow the prefix in a literal, the system will generate a, even if the first bits are 0 and the value is within SmileBasic's range. If more than 20 bits follow the prefix in a string passed to, the system instead generates an   error, again even if the value is within SmileBasic's range.

In some instances, it is not necessary to put a space between the end of the literal and the following operator, e.g.  will give   as expected, but in others, it is necessary, e.g.   gives the confusing result , and the assignment   generates a. The commands  and   will give the expected results.