Skip to content

Calculator and conversions

Evaluate math expressions, convert units, and convert currencies without leaving the launcher. No keyword is required; just type. Enter copies the result.

How to use it

Type a math expression directly into Sevak. The calculator recognizes what you're asking and shows the result:

flowchart TD
    A["Input"] --> B{"Contains<br/>operators?<br/>+ - * / ^"}
    B -->|Yes| C["Math<br/>expression"]
    B -->|No| D{"Matches pattern<br/>'number unit<br/>in|to|as unit'?"}
    D -->|Yes| E["Unit<br/>conversion"]
    D -->|No| F{"ISO currency<br/>codes or<br/>symbols?<br/>usd eur"}
    F -->|Yes| G["Currency<br/>conversion"]
    F -->|No| H["Treat as<br/>unsupported"]
    C --> I["Evaluate"]
    E --> I
    G --> I

Math expressions

Type a math expression and Enter copies the result. Results use up to 12 significant digits.

Tab replaces what you typed with the bare result, so you can keep calculating: 2^10, then Tab gives 1024, and typing *3 continues from there. The number has no unit and no thousands separators (10 km in mi gives 6.213711922, and 1000000 * 1000 gives 1000000000).

Expression Result Operation
12*7 84 Multiplication
(125+75)/4 50 Grouped arithmetic
2^10 1024 Powers (^ or **)
sqrt(16) 4 Square root
5! 120 Factorial
17%5 2 Remainder (not percentage)
sin(0) 0 Trigonometry

Operators: + - * / % (remainder) ^ (power, right-associative) ! (factorial) - × and ÷ work as aliases for * and / - ** is an alias for ^ - Unary minus: -2^2 = -4 (minus binds loose; negate then power)

Functions: - Roots: sqrt(x) cbrt(x) (cube root) - Trig: sin, cos, tan, asin, acos, atan, sinh, cosh, tanh - Logarithms: ln (natural log) log (base 10) log2 exp (e^x) - Rounding: floor ceil round - Utility: abs sign min(a,b) max(a,b) pow(a,b) hypot(a,b) atan2(y,x)

Constants: pi (π) e tau (2π)

Unit conversion

Type <amount> <unit> (in|to|as|=|→) <target_unit>.

Input Result
10 km in mi 6.213711922 mi
72°F to C 22.22222222 °C
5'11" to cm 180.34 cm
2 h 30 min in min 150 min
1 acre in m² 4046.856422 m²
60 mph in km/h 96.56064 km/h
5 GB in MiB 4768.371582 MiB
100 Mbps in MB/s 12.5 MB/s
30 mpg in L/100km 7.840486111 L/100km
1 hp in kW 0.7456998716 kW

Units work offline. Amounts can be expressions: (2+3) km in m = 5000 m.

Supported categories: - Length: m, km, cm, mm, mi, yd, ft, in, nmi (nautical mile), ly (light-year), au (astronomical unit), pc (parsec), furlong, chain, rod (also pole, perch), ftm (fathom), league, mil (also thou), hand - Mass: kg, g, lb, oz (mass ounce), t (metric ton), ton (short ton), ozt (troy ounce), slug - Temperature: °C, °F, K (the amount can be an expression, but there is no compound form like 1 c 2 c) - Volume: L, ml, gal (US gallon), cup, tbsp (tablespoon), tsp (teaspoon), fl oz (fluid ounce), pt (US pint), qt (quart), gill, bbl (oil barrel, 42 US gallons), ac·ft (acre-foot) - Imperial: imp gal, imp pt for British units - Area: m², km², cm², ft², mi², acres, hectares - Speed: m/s, km/h, mph (miles per hour), knots, ft/min, any length/time combination (e.g., mi/h), Mach (340.29 m/s, sea level at 15 °C) - Data: B (byte), KB, MB, GB, TB, PB, EB, ZB (powers of 1000); KiB, MiB, GiB, TiB, PiB, EiB, ZiB (powers of 1024); nibble (4 bits) - Case matters: MB = megabyte, Mb = megabit; kb, mb, gb = bytes - Data rate: bps, kbps, Mbps, Gbps, Tbps (bits per second), and any data unit over any time unit (e.g., MB/s, Mbit/s, MiB/s, GB/min) - Mbps = megabits per second; MBps = megabytes per second - Time: s, min, h, d, mo (month = 1/12 year), yr (year = 365.25 days), fortnight, millennium - Pressure: Pa, kPa, MPa, bar, atm, psi, torr, mmHg, inHg, inH2O, cmH2O - Energy: J, kJ, MJ, GJ, cal, Cal (food Calorie = kcal), kWh, BTU, thm (therm), ft·lbf (foot-pound), erg, tTNT (ton of TNT, 4.184 GJ) - Power: W, mW, kW, MW, GW, hp (mechanical horsepower), PS (metric horsepower), BTU/h, kcal/h, ft·lbf/s - Frequency: Hz, kHz, MHz, GHz, THz, rpm, bpm (rpm and bpm are 1/60 Hz) - Force: N, kN, MN, dyn, lbf, kgf (also kp), ozf - Torque: N·m (also Nm, N m), kN·m, lbf·ft (also lb-ft), lbf·in (also in-lb), kgf·m, dyn·cm - Fuel economy: km/L, L/100km (also l/100 km), mpg (US), mpg imp (also mpg uk) - L/100km is inverted, so 0 L/100km has no answer instead of infinity - Angle: ° deg rad (radian) turn (full rotation)

Compound units: 10 km/h, 5 sq ft, cm², cubic m, m/s, miles per hour, MB/s all work.

Ambiguous cases: - oz = mass ounce; fl oz = fluid ounce - m = meters; min = minutes - ° or deg alone = angle; °C or deg C = temperature - cal = small calorie (4.184 J); Cal = food Calorie (kcal) - t = metric tonne; ton = US short ton - c = Celsius, so there is no speed of light; kt = knot - kn = knot; kN = kilonewton. nm = nanometer; Nm = newton-meter. mW = milliwatt; MW = megawatt; mw is not recognized - ft·lbf (ft-lb, foot-pound) = energy; lbf·ft (lb-ft, pound-foot) = torque. They are separate categories, so they do not convert into each other - bbl = oil barrel (158.99 L), not the 31.5 gallon liquid barrel

Results keep up to 10 significant digits.

Currency conversion

Off by default. Turn it on in Settings → Plugins → Currency conversion, or set [calculator] currency = true and reload.

Type <amount> <currency> in <currency>. Use ISO codes (usd, eur) or symbols ($, €):

Input Result
100 usd in eur 92.15 EUR (example rate)
50 € to $ 54.50 USD (example rate)
$100 in eur 92.15 EUR (example rate)

Rates come from the European Central Bank daily, updated at most once a day in the background (never while you type). Until the first download, the result says "Fetching exchange rates…". Amounts can be expressions.

Supported currencies: 30+ major fiat currencies with EUR as the base. The subtitle shows the exchange rate and the ECB's publication date. Cryptocurrencies are not supported.

Options

Setting Default What it does Config section
Currency false Enable currency conversion (needs network) [calculator] currency

Platform notes

The calculator works identically on all Windows versions. Keyboard layouts that use ^ as a dead key (European layouts) still parse ^ as the power operator inside Sevak.

The calculator works identically on all macOS versions. Type option+0 for the degree symbol in unit conversions (e.g., 32°F to C).

The calculator works identically on all Linux desktop environments. Compose key sequences can type special characters outside Sevak; inside the launcher use ASCII equivalents like deg for °.

Tips and troubleshooting

Percentage of a number: The % operator is remainder, not percentage. To find 15% of 200, type 200*15/100 = 30.

Scientific notation: Write 1e3 for 1000, 2e-4 for 0.0002. Leading zeroes and underscores: 1_000_000 = 1000000.

Rounding noise: sin(pi) shows something like 1.2e-16 instead of exactly 0 because of floating-point precision. Real results like sin(π/2) = 1 are exact.

Precision: Results are rounded to 12 significant digits to fit the launcher and remove noise from floating-point math. For most everyday use, this is more than enough.