OCT - octal to decimal conversion

Usage:

oct <octal number>

Examples:

oct 7777777

Description:

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

Known Bugs:

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.