dcdc
[file
]
An interactive desk calculator program that performs arbitrary-precision integer arithmetic (input may be taken from a file
). Normally you don't run dc
directly, since it's invoked by bc
(see bc
). dc
provides a variety of one-character commands and operators that perform arithmetic; dc
works like a Reverse Polish calculator; therefore, operators and commands follow the numbers they affect. Operators include
Examples
Note: spaces are not needed except between numbers. |
|