How to use Notepad

Variables, units, currencies, percentages — with examples for each.

Last updated 1 day ago

Notepad

Write your calculations as plain text. Every line is worked out as you type it, with the result shown on the right.

rent = 256 + 128 384 utilities = 85 85 rent + utilities 469 

Unit Conversion

Use in (also to, as) to convert one unit into another. Units are stripped from the expression automatically, so you can do maths with them.

20 ml in tsp 100 USD in EUR 25 cm * 6 price in USD + 4 

Multi-word unit names work too: tea spoons, nautical mile, square meter.

Unit names are localised — if the app is set to German, 20 ml in Teelöffel works as well.


Currency

Use ISO 4217 codes (USD, EUR, GBP, JPY…), common symbols ($, , £, ¥), or localised names. Rates update automatically and are cached for offline use.

$9 + 3 100 USD in EUR 4 GBP in JPY 

Note: only the first currency symbol in a line is recognised. Write $9 + $3 as 9 + 3 USD instead.


Operations

Symbols and words both work.

OperationHow to write it

Addition

+, plus, and, with

Subtraction

-, minus, subtract, without, less

Multiplication

*, ×, times, multiplied by, mul

Division

/, ÷, divide, divide by, divided by

Exponent

^

Modulo

mod(10, 3)

Word operators need spaces around them, so minutes is not read as minus.

8 times 9 20 divided by 4 2^10 

Expressions stack, and parentheses next to each other multiply:

1 meter 20 cm 120 cm 6 (3) 18 

Numbers

Decimal, binary (0b), octal (0o) and hexadecimal (0x).

0b110111011 443 0o1435343 408291 0x1F 31 

Scales

Short forms for large numbers. One-letter scales are case-sensitive — M is million, while m is reserved for metres.

2k 2,000 3M 3,000,000 1.5B 1,500,000,000 2 thousand 2,000 

Also million, billion, trillion.


Percentage

OperationExampleResult

Percentage value

20% of 100

20

Adding a percentage

5% on 30

31.5

Subtracting a percentage

6% off 40

37.6

Relative percentage

100 - 40%

60

Value by percent part

5% of what is 6

120

Standalone

8%

0.08

In an addition or subtraction, a percentage is taken relative to the left side100 - 40% is 60, not 99.6.


Variables

Declare with = (or :) and reuse them anywhere below.

price = 10 fee = 8% price * 3 

Variable names can use letters from any supported language — rent, 房租, 家賃, цена all work. They cannot start with a number or contain spaces.

Note: a variable stores the calculated number, not the expression. fee = 8% stores 0.08, so 40 + fee is 40.08. For a relative percentage, use fee on 40 instead.


Previous Result

prev (or last) refers to the line above.

20 prev + 5 25 

Sum and Average

sum (or total) adds every non-assignment line above, back to the last blank line. avg (average, mean) does the same for the average. Also available: count, min, max.

10 15 sum 25 

A blank line starts a new block, so each section can have its own total.


Constants and Functions

pi and e are built in.

DescriptionFunctionExample

Square root

sqrt

sqrt(16)

Cube root

cbrt

cbrt(8)

Absolute value

abs

abs(-4)

Logarithm

log

log(10)

Base-2 / base-10 log

log2, log10

log2(8)

Natural logarithm

ln

ln(3)

Factorial

!

5!

Rounding

round, ceil, floor

round(3.45)

Trigonometry

sin, cos, tan

sin(45)

Inverse

asin, acos, atan

asin(0.5)

Hyperbolic

sinh, cosh, tanh

sinh(3)

Inverse hyperbolic

asinh, acosh, atanh

asinh(3)

Modulo

mod

mod(10, 3)

Trigonometric functions take radians by default. The Scientific page has a Rad/Deg toggle that also applies here.


Formatting

SyntaxEffect

# text

Comment — the whole line is ignored

// text

Comment — same as above

Label: 10 + 5

The label is ignored, the expression is calculated

blank line

Starts a new block for sum / avg

# Monthly costs rent = 1200 utilities = 85 Total: rent + utilities 

Units

CategoryExamples

Currency

30+ currencies with live rates

Length

mm, cm, m, km, inch, foot, yard, mile, nautical mile, light-year…

Weight

mg, g, kg, tonne, ounce, pound, stone

Temperature

celsius, fahrenheit, kelvin

Area

cm², m², km², hectare, acre, square foot…

Volume

ml, l, m³, teaspoon, tablespoon, cup, pint, quart, gallon

Speed

m/s, km/h, mph, knot

Data

bit, byte, KB, MB, GB, TB, and the kibi- forms

Duration

ms, second, minute, hour, day, week, year

Pressure

hPa, kPa, bar, psi, mmHg

Power

watt, kilowatt, horsepower

Energy

joule, calorie, kWh

Force

newton, pound-force

Angle

degree, radian, gradian, arcminute, arcsecond

Fuel

L/100km, mpg, km/L

123 units across 15 categories. Names and abbreviations are localised in every supported language.


Multiple Notes

Tap the list icon to switch between notes or create a new one. The title comes from the first non-empty line, so you don't need to name them.


Not supported

These appear in similar apps but are not available here:

  • Date and time calculationsnow, next friday + 2 weeks, time zones

  • Bitwise operations&, |, xor, <<, >>

  • CSS units — px, pt, em

  • Cryptocurrencies

  • Inline comments10 + 5 "note" (use # on its own line instead)

  • Scientific notation formatting5300 in sci