home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d9xx / d969 / ace.lha / ACE / ACE-2.0.lha / PRGS.lha / ShellUtils / base.b next >
Text File  |  1994-01-16  |  312b  |  21 lines

  1. deflng x
  2.  
  3. SUB usage
  4.   print "usage: base <decimal number>"
  5.   stop
  6. END SUB
  7.  
  8. if argcount<>1 then
  9.   usage
  10. else
  11.   if arg$(1)="?" then 
  12.     usage
  13.   else
  14.     x=val(arg$(1))
  15.     print "    Decimal:";x
  16.     print "Hexadecimal: ";hex$(x)
  17.     print "      Octal: ";oct$(x)
  18.     print "     Binary: ";bin$(x)
  19.   end if
  20. end if
  21.