Literals/Integer: Difference between revisions

Content added Content deleted
Line 1,000: Line 1,000:


=={{header|FutureBasic}}==
=={{header|FutureBasic}}==
<lang futurebasic>
<lang futurebasic>window 1
include "ConsoleWindow"


printf @" Decimal: %ld", 100
def tab 2
printf @" Hexadecimal: %x", 100
printf @" Octal: %o", 100
print @" Binary: "; 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:
Output:
<pre>
<pre>
Decimal 100: 100
Decimal: 100
Hexadecimal &h64: 100 00000064
Hexadecimal: 64
Octal &o144: 100 00000000144
Octal: 144
Binary &x1100100: 100 00000000000000000000000001100100
Binary: 00000000000000000000000001100100
</pre>
</pre>