Jump to content

Literals/Integer: Difference between revisions

Line 1,000:
 
=={{header|FutureBasic}}==
<lang futurebasic>window 1
include "ConsoleWindow"
 
printprintf @" Decimal: 100:%ld", 100
def tab 2
printprintf @" Hexadecimal: &h64:%x", &h64, hex$(100)
printprintf @" Octal: &o144:%o", &o144, oct$(100)
print @" Binary &x1100100 Binary: ",; &x1100100, bin$(100)
 
HandleEvents</lang>
print " Decimal 100:", 100
print " Hexadecimal &h64:", &h64, hex$(100)
print " Octal &o144:", &o144, oct$(100)
print " Binary &x1100100:", &x1100100, bin$(100)
</lang>
Output:
<pre>
Decimal 100: 100
Hexadecimal &h64: 100 0000006464
Octal &o144: 100 00000000144144
Binary &x1100100: 100 Binary: 00000000000000000000000001100100
</pre>
 
416

edits

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