dc - Unix, Linux Command


Advertisements


NAME

dc - Desk calculator

SYNOPSIS

dc 

DESCRIPTION

The desk calculator works with postfix notation; rather like many HP Calculators. Basic arithmetic uses the standard + - / * symbols but entered after the digits.

OPTIONS

TagDescription
-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.

EXAMPLES

$ dc
100
0.5
*
p
50


Advertisements