Skip to content

Calculator

ZetoPad includes a powerful calculator that evaluates mathematical expressions inline.

Opening the Calculator Panel

  1. Press Cmd+Shift+C or
  2. Click the calculator icon in the toolbar
  3. Or use Command Palette: “Toggle Calculator”

Inline Evaluation

The calculator evaluates expressions as you type in your snippets:

2 + 2 = 4
100 * 0.15 = 15
sqrt(144) = 12

Supported Operations

Basic Arithmetic

OperatorExampleResult
+5 + 38
-10 - 46
*6 * 742
/20 / 45
%17 % 52
^ or **2^101024

Mathematical Functions

FunctionExampleResult
sqrt(x)sqrt(16)4
abs(x)abs(-5)5
round(x)round(3.7)4
floor(x)floor(3.9)3
ceil(x)ceil(3.1)4
log(x)log(100)2
ln(x)ln(e)1
exp(x)exp(1)2.718...

Trigonometry

FunctionDescription
sin(x)Sine (radians)
cos(x)Cosine (radians)
tan(x)Tangent (radians)
asin(x)Inverse sine
acos(x)Inverse cosine
atan(x)Inverse tangent

Constants

ConstantValue
pi3.14159…
e2.71828…

Practical Examples

Percentage Calculations

500 * 0.2 = 100 # 20% of 500
250 / 0.8 = 312.5 # Number that 250 is 80% of

Unit Conversions

# Fahrenheit to Celsius
(98.6 - 32) * 5/9 = 37
# Miles to Kilometers
26.2 * 1.60934 = 42.16

Programming Math

# Binary to decimal
2^7 + 2^5 + 2^0 = 161
# Array index calculation
(15 * 1024) + 256 = 15616

Tips

  • Results update in real-time as you type
  • Use parentheses for complex expressions
  • Calculator respects your snippet content - results appear as comments

Disabling

Toggle the calculator panel to disable inline evaluation when not needed.