Literals/Integer: Difference between revisions
Add SmallBASIC
m (→{{header|Wren}}: Changed to Wren S/H) |
(Add SmallBASIC) |
||
Line 504:
PRINT BIN(10001)
PRINT ORD(HEX$("11"))</syntaxhighlight>
==={{header|SmallBASIC}}===
<syntaxhighlight lang="qbasic">
print 255 ' Decimal
print 0xFF ' Hexadecimal
print 0hFF ' Hexadecimal
print &xFF ' Hexadecimal
print &hFF ' Hexadecimal
print 0o377 ' Octal
print &o377 ' Octal
print 0b11111111 ' Binary
print &b11111111 ' Binary
</syntaxhighlight>
==={{header|Yabasic}}===
|