Jump to content

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}}===
29

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.