dc: Parameters
1
1 7 Parameters
1 ************
1
1 'dc' has three parameters that control its operation: the precision, the
1 input radix, and the output radix. The precision specifies the number
1 of fraction digits to keep in the result of most arithmetic operations.
1 The input radix controls the interpretation of numbers typed in; _all_
1 numbers typed in use this radix. The output radix is used for printing
1 numbers.
1
1 The input and output radices are separate parameters; you can make
1 them unequal, which can be useful or confusing. The input radix must be
1 between 2 and 16 inclusive. The output radix must be at least 2. The
1 precision must be zero or greater. The precision is always measured in
1 decimal digits, regardless of the current input or output radix.
1
1 'i'
1 Pops the value off the top of the stack and uses it to set the
1 input radix.
1
1 'o'
1 Pops the value off the top of the stack and uses it to set the
1 output radix.
1
1 'k'
1 Pops the value off the top of the stack and uses it to set the
1 precision.
1
1 'I'
1 Pushes the current input radix on the stack.
1
1 'O'
1 Pushes the current output radix on the stack.
1
1 'K'
1 Pushes the current precision on the stack.
1