Skip to main content

➗ Plugin - Calc

← Back to Plugins

Evaluates mathematical expressions typed directly in InputBar and copies the result to the clipboard.

Keywords: calc · * (global — active on every search) - Edit in Plugins.json

Supported operations

OperatorMeaningExample
+Addition12 + 820
-Subtraction100 - 3763
*Multiplication6 * 742
/Division10 / 42.5
%Modulo17 % 52
^ or **Power2 ^ 101024
()Grouping(3 + 4) * 214

Decimal numbers and negative values are supported:

-5 * (3.14 + 1) → -20.7
2 ^ 32 → 4294967296

Result

When a valid expression is detected, the result appears at the top of the list as = <value>.
Pressing Enter copies the result to the clipboard.

Float results are rounded to 6 decimal places to avoid display noise.

Safety

Expressions are evaluated using Python's ast module — no eval() call is made.
Only numeric constants and the operators listed above are permitted. Any other input is silently ignored by the plugin.