# Delx Commerce Approximate Equality Check

> Delx Commerce Approximate Equality Check is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Checks whether two numbers are approximately equal within a given tolerance, returning a boolean result

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/approx-eq?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-approximate-equality-check-4625e1d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RROcmicdryXKw3ESETaqF

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-commerce-approximate-equality-check-4625e1d6 -d '<json body>'
```

Example prompt: Are 1.0 and 1.0004 approximately equal if I allow a tolerance of 0.001?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call numeric approximate equality check without standing up your own math utility, especially within an agent pipeline that already uses x402/USDC micropayments on Base or Solana. Useful for validating floating point computations, sensor readings, or financial figures where exact equality is unreliable due to precision limits.

## Known failure modes

- Missing required fields (a, b, or tolerance) result in an error response
- Non-numeric values for a, b, or tolerance cause a validation error
- Payment failure via x402 protocol prevents the call from completing
- Network timeout if the service is temporarily unavailable

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the original inputs (a, b, tolerance), and a boolean 'equal' field indicating whether the two numbers are within the specified tolerance of each other, along with a schema identifier string.

## 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-commerce-approximate-equality-check-4625e1d6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
