LoginLogin

Reading Binary with SmileBasic

Root / Programming Questions / [.]

Missingno50Created:
Is there a command for me to get binary from the values of a variable in SmileBasic? Simple enough question.

PRINT BIN$(254) '11111110

The reference manual that is supposed to have all the instructions doesn't list that. Is that really the thing I need? If so, that's so useful!

It is. You can give it a size parameter too: ?BIN$(7,4) '0111