← All quick checks

Exact calculator: arithmetic, fractions and big integers

$0.0021 USD per call Pay per call via x402, no signup

This call evaluates a math expression exactly, supporting + - * / % ^ !, parentheses, big integers and fractions (so 1/3 stays 1/3), plus sqrt, round, floor, min, max, mean, gcd, lcm, comb, perm, ln, log, exp and trig (radians, with a deg constant). It returns the result, a fraction, a decimal to N places, a repeating decimal, and whether the value is exact; input is expr, with optional decimals 0-100; limits are 1,000 characters and 10,000-digit values; the calculation runs offline.

Call it

x402: GET https://shop.lordevo.com/api/quick/math-eval?expr=sqrt(16/9)%20%2B%20cbrt(-27)%20%2B%208%5E(1/3) or POST the same fields as JSON to https://shop.lordevo.com/api/quick/math-eval · MCP tool math_eval at https://shop.lordevo.com/mcp

The first call answers HTTP 402 with the price ($0.0021 USD per call, USDC on Base); any x402 client pays and retries. Instant tools that fail or are refused are not charged. Discovery is free: /catalog.json, /openapi.json, /llms.txt.

Example

The catalog's own example for this tool (illustrative sample values, not a live result).

Input

{
  "expr": "sqrt(16/9) + cbrt(-27) + 8^(1/3)"
}

Output

{
  "tool": "math-eval",
  "expression": "sqrt(16/9) + cbrt(-27) + 8^(1/3)",
  "result": "0.33333333333333333333",
  "exact": true,
  "integer": false,
  "fraction": "1/3",
  "decimal": "0.33333333333333333333",
  "decimals": 20,
  "rounded": true,
  "repeating": "0.(3)",
  "scientific": "3.3333333333333333e-1",
  "number": 0.3333333333333333,
  "digits": null,
  "notes": [
    "decimal is rounded to 20 places; fraction is the exact value."
  ]
}

All quick checks and prices · Guides · Errors and limits