home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
coders
/
jËzyki_programowania
/
ace_basic
/
ace
/
prgs
/
shellutils
/
base.b
next >
Wrap
Text File
|
1995-07-26
|
312b
|
21 lines
deflng x
SUB usage
print "usage: base <decimal number>"
stop
END SUB
if argcount<>1 then
usage
else
if arg$(1)="?" then
usage
else
x=val(arg$(1))
print " Decimal:";x
print "Hexadecimal: ";hex$(x)
print " Octal: ";oct$(x)
print " Binary: ";bin$(x)
end if
end if