Use the calc command to perform simple calculations.
calc expression
expression | The expression you specify may consist of numbers, operators, and
functions.
The following operators are supported:
The result is displayed on the message line. If no parameters are specified, the calc command will use the selection in the current document view, if any, as the expression to calculate. |
The status parameter is not affected by this command.
calc 1024 calc (298 + 584/4) / 111 calc max(3., -1, 5/2, random())
Editor commands, actions, and parameters
Copyright IBM Corporation 1992, 2004. All Rights Reserved.