The calculator allows quick calculations without leaving the IDE. It is a simple calculator, since it does not take care of operator precedence, and bracketing of operations is not (yet) supported.
The result of the calculations can be pasted into the text using the Ctrl-Enter keystroke. The calculator dialog is shown in figure (6.19).
The calculator supports all basic mathematical operations such as addition, subtraction, division and multiplication. They are summarised in table (6.1).
Add two numbers
Subtract two numbers
Multiply two numbers
Divide two numbers
Delete the last typed digit
Change the sign
Do per cent calculation
Get result of operation
But also more sophisticated mathematical operations such as exponentiation and logarithms are supported. The advanced mathematical operations are shown in table (6.2).
Calculate the inverse value
Calculate the square root
Calculate the natural logarithm
Square the display contents
Like many calculators, the calculator in the IDE also supports storing a single value in memory, and several operations can be done on this memory value. The available operations are listed in table (6.3)
Add the displayed number to the memory
Subtract the displayed number from the memory
Move the memory contents to the display
Move the display contents to the memory
Exchange display and memory contents