# Percent-Of Calculator

> Percent-Of Calculator is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Performs percentage math: calculates X% of Y, what percent one number is of another, or percent change between two values.

## Facts

- Endpoint: POST https://x402.forgemesh.io/percent-of-calculator
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/percent-of-calculator-d814b5f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tv-RlpdadCoEyTNogQkY7

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 percent-of-calculator-d814b5f8 -d '<json body>'
```

Example prompt: What is 18% of $74.50 — use the percent-of calculator with the 'of' operation so I get the exact tip amount without rounding errors.

## When to prefer this

Use this endpoint when an agent needs exact, error-free percentage arithmetic — such as computing discounts, markups, tips, grade percentages, or reporting growth rates — instead of relying on LLM mental math which is prone to rounding errors. Especially useful in pricing, financial, or grading workflows where precision matters.

## Known failure modes

- Missing required fields a or b returns an error
- Invalid or unrecognized operation string returns an error
- Non-numeric strings passed as a or b cause a parsing error
- Division-by-zero scenario (e.g. is_what_percent with b=0) returns an error
- Payment failure or insufficient USDC balance blocks the request

## How this service works

Percentage math calculator: find what X% of Y is, what percent one number is of another, or the percent change between two values. Built for pricing markups, discount math, grading, tipping, and reporting agents that need the exact figure instead of mental-math rounding errors.

## Output

Returns the precise numerical result of the requested percentage operation — e.g. the value of X% of Y, the percent that A is of B, or the percent change/increase/decrease between two numbers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "string"
  },
  "b": {
   "type": "string"
  },
  "operation": {
   "type": "string",
   "description": "of | is_what_percent | change | increase | decrease"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "25 %",
  "operation": "% change 80 → 100"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/percent-of-calculator-d814b5f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
