RosettaCodeData/Task/Non-decimal-radices-Input/BBC-BASIC/non-decimal-radices-input.basic
2023-07-01 13:44:08 -04:00

10 lines
305 B
Text

REM VAL parses decimal strings:
PRINT VAL("0")
PRINT VAL("123456789")
PRINT VAL("-987654321")
REM EVAL can be used to parse binary and hexadecimal strings:
PRINT EVAL("%10101010")
PRINT EVAL("%1111111111")
PRINT EVAL("&ABCD")
PRINT EVAL("&FFFFFFFF")