oct <octal number>
oct 7777777
This command provides a means to convert an octal number to its decimal equivalent. Negative signs are allowed on input (!), so that
oct -777777777777
yields
dec 1
oct 400000000000 (i.e., negative machine infinity) results in an "illegal input" message.
No checking is done on the length of the octal number input; the trailing 12 octal digits are used to generate the decimal number.
This routine should be as dumb as the 'dec' command and not allow a negative sign.
Copyright © 1996, Thinkage Ltd.