{"slug":"lookupkit-dev-api-math-eval-89ae17","title":"Calculator, math expression evaluator with exact decimal arithmetic","host":"lookupkit.dev","method":"GET","resource":"https://lookupkit.dev/api/math_eval","category":"code","description":"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: ","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":4,"answered_7d":4,"latency_ms_median":27,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"expr":"(0.1 + 0.2) * 3 / 7 + sqrt(2)^2"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"properties":{"expr":{"maxLength":500,"minLength":1,"type":"string"},"places":{"default":20,"maximum":40,"minimum":0,"type":"integer"}},"required":["expr"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":26,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":28,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":31,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":26,"error":null}],"description_full":"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.","last_updated":"2026-11-23T08:04:20.884Z","schemes":["exact"]}