To convert a number to binary press B and to convert binary to a number press N.
If it says Nan it means the number has exceeded the integer limit in scratch and cannot be converted to binary.