Skip to content
Fourohtwo

Calculator, math expression evaluator with exact decimal arithmetic

lookups.mtfit-mcp.workers.dev/api/math_eval

Calculator, math expression evaluator with exact decimal arithmetic. Evaluate a maths expression exactly with decimal arithmetic (0.1+0.2 = 0.3): + - * / ^ %, brackets, sqrt, abs, round(x, places), floor, ceil, ln, log, exp, sin, cos, tan, min, max, mod, pi, e. A safe parser: no code is run. Input: expr. Output: result (string, exact), number.

BaseUnchecked
GEThttps://lookups.mtfit-mcp.workers.dev/api/math_eval

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://lookups.mtfit-mcp.workers.dev/api/math_eval?expr=%280.1+%2B+0.2%29+*+3+%2F+7+%2B+sqrt%282%29%5E2");
console.log(await res.json());

Example input

{
  "expr": "(0.1 + 0.2) * 3 / 7 + sqrt(2)^2"
}

More from Lookup KitProvider status