Grammar

info

Please, let us know if you find any bugs, or you would like to have other feature that we have not added yet!

Submit feedback

Simple arithmetics

2 + 2 // 4
3 * 3 - 2 // 7

Parentheses

change natural operator precedence

15 + 5 * 2 // 25
(15 + 5) * 2 // 40

Mix text and math expressions

Sometimes it is very handy to add some clarifying text inside expressions

Number 5 is just a number // 5
Sum of 5 and + 5 // 10

Number escape (or number comment)

It is possible to exclude number from evaluation by using symbol \

\12 // the result will be empty
7 + \2 33 // 40
22 * 2 \3 and -1 // 43

Sign

-10 // -10
-5 + 5 // 0
-1 + 5 // 4

Shortcuts

See Prefixes

1k // Shortcut for thousand 1000
1M // Shortcut for million 1 000 000

Power

- 2 ^ 5 // 32
- 10 ^ 3 // 1000
2 ^ 3 ^ 2 // 512
- 10 ^ -3 // 0.001

Percentages

1000 + 10% // 1100
2 + 10% // 2.2
10% * 1000 // 100
1000 - 10% - 10% // 810
10% * 10% // 0.01
20 is 10% of // 200
450 is 15% of // 3000
10% of 1010 // 101
10% of (300 * 2) // 60
20 of 1000 to % //2%
450 of 3000 to % //15%
15 of 24 to % //62.5%

Units

- Length
meter (m), inch (in), foot (ft), yard (yd), mile (mi), link (li), rod (rd), chain (ch), angstrom, mil
- Surface area
m2, sqin, sqft, sqyd, sqmi, sqrd, sqch, sqmil, acre, hectare
- Volume
m3, litre (l, L, lt, liter), cc, cuin, cuft, cuyd, teaspoon, tablespoon
- Liquid volume
minim (min), fluiddram (fldr), fluidounce (floz), gill (gi), cup (cp), pint (pt), quart (qt), gallon (gal), beerbarrel (bbl), oilbarrel (obl), hogshead, drop (gtt)
- Angles
rad (radian), deg (degree), grad (gradian), cycle, arcsec (arcsecond), arcmin (arcminute)
- Time second
(s, secs, seconds), minute (mins, minutes), hour (h, hr, hrs, hours), day (days), week (weeks), month (months), year (years), decade (decades), century (centuries), millennium (millennia)
- Frequency
hertz (Hz)
- Mass
gram(g), tonne, ton, grain (gr), dram (dr), ounce (oz), poundmass (lbm, lb, lbs), hundredweight (cwt), stick, stone
- Temperature
kelvin (K), celsius (degC), fahrenheit (degF), rankine (degR)
- Amount of substance
mole (mol)
- Luminous intensity
candela (cd)
- Force
newton (N), dyne (dyn), poundforce (lbf), kip
- Energy
joule (J), erg, Wh, BTU, electronvolt (eV)
- Power
watt (W), hp
- Pressure
Pa, psi, atm, torr, bar, mmHg, mmH2O, cmH2O
- Electricity and magnetism
ampere (A), coulomb (C), watt (W), volt (V), ohm, farad (F), weber (Wb), tesla (T), henry (H), siemens (S), electronvolt (eV)
- Binary
bits (b), bytes (B)

Prefixes

Decimal prefixes

Name Abbreviation Value
- deca da 1e1
- hecto h 1e2
- kilo k 1e3
- mega M 1e6
- giga G 1e9
- tera T 1e12
- peta P 1e15
- exa E 1e18
- zetta Z 1e21
- yotta Y 1e24
- deci d 1e-1
- centi c 1e-2
- milli m 1e-3
- micro u 1e-6
- nano n 1e-9
- pico p 1e-12
- femto f 1e-15
- atto a 1e-18
- zepto z 1e-21
- yocto y 1e-24
- kibi Ki 1024
- mebi Mi 1024^2
- gibi Gi 1024^3
- tebi Ti 1024^4
- pebi Pi 1024^5
- exi Ei 1024^6
- zebi Zi 1024^7
- yobi Yi 1024^8
- kilo k 1e3
- mega M 1e6
- giga G 1e9
- tera T 1e12
- peta P 1e15
- exa E 1e18
- zetta Z 1e21
- yotta Y 1e24