Exact Calculator API: Decimal Maths, Percent, Loans, Rounding avatar

Exact Calculator API: Decimal Maths, Percent, Loans, Rounding

Pricing

$1.00 / 1,000 calculations

Go to Apify Store
Exact Calculator API: Decimal Maths, Percent, Loans, Rounding

Exact Calculator API: Decimal Maths, Percent, Loans, Rounding

Exact decimal maths for AI agents: expressions without float errors, percentages, compound interest, loan payments and amortisation schedules, 8 rounding modes and locale currency formatting.

Pricing

$1.00 / 1,000 calculations

Rating

0.0

(0)

Developer

Tudor Lane

Tudor Lane

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

12 hours ago

Last modified

Categories

Features

Limited permissions

Share

Use when: an agent needs exact decimal arithmetic, percentages, compound interest, a loan payment, a rounding mode, or locale currency formatting, without floating-point errors (0.1 + 0.2 is 0.3).

Try this input (also the default, just click Start)

{"requests": [{"expr": "0.1 + 0.2"}, {"op": "percent", "kind": "change", "from": 80, "to": 100}, {"op": "loan", "principal": 250000, "annual_rate": 4.5, "months": 300}, {"op": "round", "value": "2.675", "places": 2, "mode": "half_even"}, {"op": "format", "amount": "1234567.891", "currency": "EUR", "locale": "de_DE"}]}

Sample output (real run, 12 Nov 2026, trimmed)

{"op": "expr", "input": "0.1 + 0.2", "result": "0.3", "result_number": 0.3, "error": null}
{"op": "percent", "kind": "change", "input": "% change 80 -> 100", "result": "25", "result_number": 25, "error": null}
{"op": "loan", "input": "250000 at 4.50000% over 300 months", "result": "1389.58", "result_number": 1389.58, "monthly_payment": "1389.58", "total_paid": "416874.69", "total_interest": "166874.69", "error": null}
{"op": "round", "input": "2.675 to 2dp half_even", "result": "2.68", "result_number": 2.68, "error": null}
{"op": "format", "input": "1234567.891 EUR de_DE", "result": "1.234.567,89 €", "result_number": 1234567.891, "error": null}

Options

  • expr: safe decimal expressions (+ - * / // % **, sqrt, abs, ln, log10, exp, min, max, round). 50-digit precision.
  • percent (of, change, increase, decrease, what_percent, reverse to remove VAT/markup), compound interest, loan (optional month-by-month schedule), round (half_up, half_even, down, up, floor, ceiling, half_down, 05up), format for any locale.
  • Up to 10,000 items per run in requests. No API key and no external calls.

Pricing: pay per event, $0.001 per calculation. Errors are not charged. No subscription.

Limits & failure modes

  • Only the listed operators and functions are allowed; this is not a general programming language. Bad or missing op/expr returns an uncharged error.
  • Loan months must be 1-1200. Exponents above 10,000 are rejected. Division by zero returns an uncharged error.

Last tested: 12 Nov 2026.

Use from AI agents (MCP)

  • Apify MCP server: add https://mcp.apify.com/?tools=tudorlane/exact-calc to Claude, Cursor, ChatGPT, VS Code or any MCP client.
  • REST: POST https://api.apify.com/v2/acts/tudorlane~exact-calc/run-sync-get-dataset-items?token=YOUR_TOKEN with the input JSON.