Skip to content
  1. Docs
  2. Apps
  3. Guide

Calculator

A calculator with basic and scientific modes, unit conversion, live results and a reusable calculation history.

Calculator evaluates expressions as you type. It has three modes, Basic, Scientific and Convert, a calculation history you can reuse, and clipboard input and output.

Calculator in Basic mode with history above the result

Calculate

Type directly into the calculation sheet or use the keypad. Results update live; press Enter to evaluate. Results stay selectable and editable, so you can copy part of a result.

  • Operator precedence and parentheses work as expected.
  • % divides by 100, so 200*15% is 30.
  • Powers associate right to left, and -2^2 is −4.
  • Factorial (!) needs a whole number from 0 to 170.
  • Multiplication must be written out: write 2*pi, not 2pi.

Scientific mode

Scientific mode adds sin, cos, tan, asin, acos, atan, sqrt, ln, log (base 10), abs and exp, plus π, e, powers, squares, factorial and ans (the previous answer). Functions take parentheses, such as sin(30) or sqrt(81). A toggle switches between degrees and radians; degrees is the default.

The memory keys MS, MR and MC store, recall and clear a value. Memory lasts for the current session only.

Convert mode

Convert mode converts between units. The value can be an expression.

QuantityUnits
Lengthmetres, kilometres, centimetres, millimetres, miles, yards, feet, inches
Masskilograms, grams, pounds, ounces
TemperatureCelsius, Fahrenheit, Kelvin
Areasquare metres, square kilometres, hectares, acres, square feet
Timeseconds, minutes, hours, days, weeks

Use Swap units to reverse a conversion and the copy button to copy the result.

History

Previous calculations appear above the result. History results are selectable, and Use brings back the original expression. History keeps the latest 100 calculations and is saved between sessions. Clear history in the title bar menu removes them.

Keyboard shortcuts

Press F1 to see the list in the app.

KeysAction
Enter or =Calculate
EscClear
BackspaceRemove the last character
Ctrl+1Basic mode
Ctrl+2Scientific mode
Ctrl+3Convert mode
Ctrl+CCopy the selected text, or the whole result when nothing is selected
Ctrl+Shift+CCopy the whole result
Ctrl+VPaste an expression
F1Keyboard shortcuts

Tab moves between controls, and the arrow keys move within the mode and unit switchers. Copy result, Paste, Clear history and Keyboard Shortcuts are also in the title bar menu.

Options and data

Calculator has no settings window. It follows your desktop theme; start it with --light or --dark to override the theme for one session. The interface follows your desktop language and direction (English, German and Arabic). Expressions always use a . decimal point and English function names, whatever the language.

History is stored in $XDG_DATA_HOME/enz-calculator/history.json (normally ~/.local/share/enz-calculator/history.json). If the history file cannot be read, Calculator leaves it untouched and does not save history for that session. Calculator uses no network services.

Limitations

  • Calculations use double-precision floating point and show about 12 significant digits. Calculator is not an arbitrary-precision or accounting tool.
  • Files and text cannot be dropped onto the window; paste expressions instead.