Math

Exact math for agents — the arithmetic LLMs get plausibly wrong

Exact math for agents — the arithmetic LLMs get plausibly wrong. Evaluates an expression at 50-significant-digit precision (BigNumber): big-integer multiplication, high-precision division, roots, logs, factorials, unit conversions (12 inch to cm). GET ?expr=…, result returned as an exact string. Deterministic, no AI, never executed as code.

Price: $0.001 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

get/api/calc

Request

  • Base URL: https://api.webbersites.com
  • URL: https://api.webbersites.com/api/calc
  • Auth: API key in header X-PAYMENT

Query parameters

exprstring required

Math expression, max 400 chars — e.g. '2^128', 'sqrt(2)', '12 inch to cm'

Response

Success

exprstring
resultstring

exact result as a string

result_numbernumber

float64 companion when finite

typestring

Changes

No recorded changes to this operation across all 1 revision of this API.