{"uid":"cap_nBM2WETm7lvKZfGzoUHLB","slug":"fittings-arithmetic-worksheet-38225e76","name":"fittings Arithmetic Worksheet","description":"Runs a sequence of named arithmetic steps in exact rational arithmetic, returning every intermediate value as a fraction and a decimal, plus the repeating expansion where the result has one.","url":"https://fittings.sh/v1/calc/worksheet","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"steps":{"type":"array","description":"Up to 24 statements, each 'name = expression' or a bare expression over + - * / ^ and parentheses. A single string split on newlines or semicolons is also accepted."},"precision":{"type":"number","description":"Decimal places, 0-200, default 20"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.00446","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.00446/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00446","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00446","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_45LJvRUUGGDNtyjfWckRG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.00446","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a sequence of named arithmetic steps in exact rational arithmetic, returning every intermediate value as a fraction, decimal, and repeating expansion.","exampleAgentPrompt":"Work out these steps for me with exact rational arithmetic showing every intermediate fraction and decimal, up to 50 decimal places: principal = 10000, rate = 1/12, interest = principal * rate, total = principal + interest","exampleUseCases":[{"title":"Loan interest calculation breakdown","prompt":"Walk me through these steps in exact rational arithmetic, showing fractions and decimals to 30 places: loan = 15000, monthly_rate = 1/240, monthly_interest = loan * monthly_rate, balance = loan + monthly_interest"},{"title":"Physics formula step-by-step tracing","prompt":"Compute these physics steps with full rational precision, 20 decimal places: mass = 3/4, acceleration = 9/2, force = mass * acceleration, work = force * 8"},{"title":"Recipe scaling with exact fractions","prompt":"Run these recipe scaling steps in exact rational arithmetic showing all the fractions and repeating decimals: base = 3/8, servings = 7, scaled = base * servings, per_person = scaled / 5"}],"resultDescription":"Returns each named step with its exact rational value as a fraction (numerator/denominator), a decimal approximation to the requested precision, and where applicable the repeating block of the decimal expansion. All intermediate values in the sequence are included, not just the final result.","failureModes":["More than 24 steps provided — request is rejected","Expression syntax error (unrecognized operator or malformed expression) — parse error returned","Division by zero in any step — error returned for that step","Precision out of range (negative or greater than 200) — validation error","Circular or self-referencing variable names — error returned"],"whenToPreferThis":"Choose this endpoint when you need exact rational arithmetic (no floating-point rounding), want to trace every intermediate named step, or need the repeating decimal expansion of a result. Prefer it over general-purpose calculators or code-execution endpoints when auditability, exact fractions, or educational step-by-step transparency is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:12:45.675Z","isFirstParty":false}