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.

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, so200*15%is 30.- Powers associate right to left, and
-2^2is −4. - Factorial (
!) needs a whole number from 0 to 170. - Multiplication must be written out: write
2*pi, not2pi.
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.
| Quantity | Units |
|---|---|
| Length | metres, kilometres, centimetres, millimetres, miles, yards, feet, inches |
| Mass | kilograms, grams, pounds, ounces |
| Temperature | Celsius, Fahrenheit, Kelvin |
| Area | square metres, square kilometres, hectares, acres, square feet |
| Time | seconds, 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.
| Keys | Action |
|---|---|
| Enter or = | Calculate |
| Esc | Clear |
| Backspace | Remove the last character |
| Ctrl+1 | Basic mode |
| Ctrl+2 | Scientific mode |
| Ctrl+3 | Convert mode |
| Ctrl+C | Copy the selected text, or the whole result when nothing is selected |
| Ctrl+Shift+C | Copy the whole result |
| Ctrl+V | Paste an expression |
| F1 | Keyboard 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.