# fittings Arithmetic Worksheet

> fittings Arithmetic Worksheet is a paid API for AI agents from fittings.sh, paid per call via x402, $0.00446/call, status unknown (last checked 2026-09-14).

Runs a sequence of named arithmetic steps in exact rational arithmetic, returning every intermediate value as a fraction, decimal, and repeating expansion.

## Facts

- Endpoint: POST https://fittings.sh/v1/calc/worksheet
- Price: $0.00446/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-arithmetic-worksheet-38225e76
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nBM2WETm7lvKZfGzoUHLB

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fittings-arithmetic-worksheet-38225e76 -d '<json body>'
```

Example prompt: 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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-arithmetic-worksheet-38225e76/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
