It also allows you to define and call macros. A reverse-polish calculator stores numbers on a stack. Entering a number pushes it on the stack.
Arithmetic operations pop arguments off the stack and push the results.
To enter a number in dc , type the digits with an optional decimal point. Exponential notation is not supported. To enter two numbers in succes- sion, separate them with spaces or newlines. These have no meaning as commands. Printing Commands p Prints the value on the top of the stack, without altering the stack.