# Delx Approx Eq

> Delx Approx Eq is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Checks whether two floating-point numbers are approximately equal within a specified tolerance, returning a boolean equal flag along with the inputs.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/approx-eq
- 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/delx-approx-eq-9a442225
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AH50UUIXA0xUbkLB-DStW

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 delx-approx-eq-9a442225 -d '<json body>'
```

Example prompt: Check if 0.1 plus 0.2 is approximately equal to 0.3 — use a tolerance of 0.0001 so we don't get tripped up by floating-point rounding.

## When to prefer this

Choose this endpoint when your agent performs floating-point arithmetic and needs to avoid exact-equality pitfalls common with IEEE 754 floats. It is ideal for lightweight, stateless numerical comparisons within an agentic pipeline where you want a definitive advisory signal without implementing epsilon-comparison logic yourself. At $0.001 USDC it is cost-effective for high-frequency checks in automated workflows.

## Known failure modes

- Missing required fields (a, b, or tolerance) result in a validation error
- Non-numeric inputs for a, b, or tolerance will be rejected
- Negative tolerance values may produce unexpected behavior
- Payment failure via x402 will block the request
- Extremely large or NaN/Infinity float values may cause edge-case errors

## How this service works

Approximate equality within tolerance. Call when you compare floats from agent math without exact-equality traps. Returns equal flag, a, b, tolerance for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns a JSON object containing a boolean 'equal' flag indicating whether the two numbers fall within the specified tolerance of each other, plus the original input values a, b, and tolerance for reference.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "number",
   "description": "Input field: a."
  },
  "b": {
   "type": "number",
   "description": "Input field: b."
  },
  "tolerance": {
   "type": "number",
   "description": "Input field: tolerance."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "a": 1,
  "b": 1.0004,
  "equal": true,
  "schema": "delx/util-approx-eq/v1",
  "tolerance": 0.001
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-approx-eq-9a442225/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
