# Fraction Arithmetic (OpenVerbs)

> Fraction Arithmetic (OpenVerbs) is a paid API for AI agents from fraction.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Performs exact, fully-reduced arithmetic (add, subtract, multiply, divide) on two fractions using BigInt with no floating-point error

## Facts

- Endpoint: POST https://fraction.openverbs.com/v1/arithmetic
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fraction-arithmetic-openverbs-dc8d3aa3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EDRMgxV93sSg9uhs5UX3y

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 fraction-arithmetic-openverbs-dc8d3aa3 -d '<json body>'
```

Example prompt: Can you add 3/4 and 5/6 and give me the exact reduced fraction result — no decimals, just the precise answer?

## When to prefer this

Choose this endpoint when exact rational arithmetic is required — no floating-point approximation is acceptable. Ideal for financial calculations, recipe scaling, educational tools, or any domain where 1/3 + 1/6 must equal exactly 1/2, not 0.4999999. Prefer this over general-purpose calculators or math libraries when the inputs are known fractions and the output must be a fully reduced fraction.

## Known failure modes

- Division by a zero-valued fraction (b numerator is 0 and operation is divide) returns HTTP 400
- Missing required fields (a, b, or operation) return a validation error
- Non-integer numerator or denominator values cause schema rejection
- Invalid operation string (not add/subtract/multiply/divide) causes a 400 error

## How this service works

Add, subtract, multiply or divide two fractions and return the exact, fully-reduced result. All computation is done in BigInt so there is no floating-point error. Dividing by a zero fraction is a clean 400.

## Output

A fully reduced fraction representing the exact result of the arithmetic operation, expressed as a numerator and denominator with no floating-point rounding. Division by zero returns a clean 400 error.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "a",
      "b",
      "operation"
     ],
     "properties": {
      "a": {
       "type": "object",
       "required": [
        "numerator"
       ],
       "properties": {
        "numerator": {
         "type": "integer"
        },
        "denominator": {
         "type": "integer",
         "description": "Default 1."
        }
       },
       "description": "First fraction.",
       "additionalProperties": false
      },
      "b": {
       "type": "object",
       "required": [
        "numerator"
       ],
       "properties": {
        "numerator": {
         "type": "integer"
        },
        "denominator": {
         "type": "integer",
         "description": "Default 1."
        }
       },
       "description": "Second fraction.",
       "additionalProperties": false
      },
      "operation": {
       "enum": [
        "add",
        "subtract",
        "multiply",
        "divide"
       ],
       "type": "string",
       "description": "The operation."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fraction-arithmetic-openverbs-dc8d3aa3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fraction.openverbs.com](https://www.zero.xyz/host/fraction.openverbs.com/llms.txt)
