Exact calculator
calculateRead-onlyIdempotent
Evaluates an arithmetic expression exactly, so you don't have to do mental math. Supports + - * / % ^ (or **), parentheses, constants pi/e/tau and functions: sqrt, cbrt, abs, round(x, digits), floor, ceil, trunc, sign, ln, log(x[, base]), log10, log2, exp, pow, sin, cos, tan, asin, acos, atan, atan2, min, max, hypot, factorial. Trig uses radians. Example: "(1250 * 1.08^5) - 1250".
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decimals | No | Optional: round the result to this many decimal places | |
| expression | Yes | The expression to evaluate |