{"uid":"cap_RROcmicdryXKw3ESETaqF","slug":"delx-commerce-approximate-equality-check-4625e1d6","name":"Delx Commerce Approximate Equality Check","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/approx-eq?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"number","description":"Input field: a."},"b":{"type":"number","description":"Input field: b."},"tolerance":{"type":"number","description":"Input field: tolerance."}}},"responseSchema":{"type":"json","example":{"a":1,"b":1.0004,"equal":true,"schema":"delx/util-approx-eq/v1","tolerance":0.001}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iseeS9m4hccQEnUJkBX4X","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether two numbers are approximately equal within a given tolerance, returning a boolean result","exampleAgentPrompt":"Are 1.0 and 1.0004 approximately equal if I allow a tolerance of 0.001?","exampleUseCases":[{"title":"Floating point price validation","prompt":"Check if the computed total of 99.9997 is close enough to the expected price of 100.0, using a tolerance of 0.001 — are they approximately equal?"},{"title":"Sensor measurement tolerance check","prompt":"I have two sensor readings: 23.45 and 23.451. Are they approximately equal within a tolerance of 0.005?"},{"title":"Algorithm output verification","prompt":"My algorithm computed 3.14159 and the reference value is 3.14160 — can you check if those are approximately equal with a tolerance of 0.0001?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:54.422Z","isFirstParty":false,"canonicalSlug":"delx-commerce-approximate-equality-check-4625e1d6"}