# LogicNodes Money Calculator

> LogicNodes Money Calculator is a paid API for AI agents from logicnodes.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-28).

Performs precise monetary arithmetic (rounding, addition, subtraction, multiplication, splitting, ratio-based splitting) on currency amounts using exact decimal math

## Facts

- Endpoint: POST https://logicnodes.io/paid/v1/tools/money_calc?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/logicnodes-money-calculator-5b7a296b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DgeVBbDIIsJ7iHLgVMUgy

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 logicnodes-money-calculator-5b7a296b -d '<json body>'
```

Example prompt: Split $347.89 equally among 4 people and round each share down to the nearest cent.

## When to prefer this

Choose this endpoint when you need exact, deterministic monetary arithmetic — especially for splitting bills, fee calculations, or financial distributions where floating-point precision errors from native language runtimes would be unacceptable. Ideal for AI agents operating in DeFi or payment contexts where a rounding error can cause fund loss. Prefer this over doing arithmetic locally when you need banker's rounding, proportional splitting by ratios, or reproducible exact results across environments.

## Known failure modes

- Invalid or missing 'op' enum value returns an error
- Non-numeric 'amount' or 'other' strings cause parse failure
- 'parts' of 0 or negative values cause division errors for split operations
- Ratios that don't sum to a meaningful total may cause unexpected proportional results
- Missing required fields for the chosen operation (e.g. no 'factor' for multiply) return validation errors
- Network or payment (x402) issues cause 402 or timeout responses

## How this service works

Exact answers for AI agents: 40+ tools for EVM chains and Aptos, gas on 14 chains, never a guess. Free tier; pay per call in USDC (x402) on 13 networks.

## Output

A JSON object with ok: true, the tool name 'money_calc', and the computed result — a precisely calculated monetary value (or array of values for splits) free of floating-point errors, in the requested currency with the specified rounding applied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "op": {
   "enum": [
    "round",
    "add",
    "subtract",
    "multiply",
    "split"
   ],
   "type": "string"
  },
  "other": {
   "type": "string"
  },
  "parts": {
   "type": "integer",
   "maximum": 9007199254740991,
   "minimum": -9007199254740991
  },
  "amount": {
   "type": "string"
  },
  "factor": {
   "type": "string"
  },
  "ratios": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "currency": {
   "type": "string"
  },
  "rounding": {
   "enum": [
    "down",
    "up",
    "floor",
    "ceil",
    "half_up",
    "half_even",
    "half_down"
   ],
   "type": "string",
   "description": "rounding rule; default half_up (ties away from zero). half_even is banker's rounding"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "money_calc"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/logicnodes-money-calculator-5b7a296b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from logicnodes.io](https://www.zero.xyz/host/logicnodes.io/llms.txt)
