dc - Desk calculator
dc
The desk calculator works with postfix notation; rather like many HP Calculators. Basic arithmetic uses the standard + - / * symbols but entered after the digits.
Tag | Description |
---|---|
-e EXPR --expression=EXPR | Evaluate EXPR as DC commands. |
-f FILE --file=FILE | Read and evaluate DC commands from FILE. |
-h --help | Print a usage message summarizing the command-line options, then exit. |
-V --version | Print the version information for this program, then exit. |
$ dc 100 0.5 * p 50Print