A notepad-style calculator. Type math expressions, see results instantly.
income = 5k
rent = 1.2k
savings = income - rent // 3,800
Features:
- Variables and math functions
- Shorthand multipliers (k, m, b)
- Live currency conversion using mathjs units (
100 usd to eur,1 eur to try, etc.) - Multiple note tabs with persisted titles and content
- Line and block comments (
//,/* ... */) - Instant result popup on text selection
- Line result references (
$1,$-1, etc.) - reuse any previous line's result by number - Cross-tab variable references (
ref("Tab Name", "var")) - use variables defined in other tabs - Syntax highlighting
- Dark/light mode
- Word wrapping
- Auto-saves to localStorage
- Autocomplete for functions, units, currencies, and variables
Built with React, TypeScript, CodeMirror 6, and Math.js.
Refer to any previous line's result by its line number (1-based):
revenue = 50000
cogs = 30000
gross = $1 - $2 // 20,000
tax = gross * 0.20 // 4,000 (variables still work too)
net = $3 - $4 // 16,000
Relative references use negative numbers: $-1 for previous line, $-2 for two lines above.
list_price = 100
discount = $-1 * 0.10 // 10
final = $1 - $-1 // 90
Access variables from other tabs with ref("tab title", "variable name"):
// Tab "constants"
tax_rate = 0.15
shipping = 5.99
// Tab "orders"
price = 49.99
total = price + ref("constants", "shipping")
with_tax = total * (1 + ref("constants", "tax_rate"))