{"uid":"cap_n2XFV5QhfA2q_reoQPfLo","slug":"delx-commerce-round-to-n-decimal-places-6e6228ee","name":"Delx Commerce — Round to N Decimal Places","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/round-n?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"number","description":"Input field: value."},"digits":{"type":"integer","description":"Input field: digits."}}},"responseSchema":{"type":"json","example":{"value":3.14,"digits":2,"schema":"delx/util-round-n/v1"}},"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_D9JPFocNCEZDGx-rlTQNw","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":"Rounds a numeric value to a specified number of decimal digits and returns the result.","exampleAgentPrompt":"Round 3.14159 to 2 decimal places for me.","exampleUseCases":[{"title":"Round currency amount to cents","prompt":"Round 19.9999 to 2 decimal places so I can display it as a dollar price."},{"title":"Format measurement to 1 decimal","prompt":"Round 27.583 to 1 decimal place for a clean sensor readout."},{"title":"Normalize ratio to 4 digits","prompt":"Can you round 0.333333 to 4 decimal places for me?"}],"resultDescription":"Returns a JSON object containing the rounded value, the number of digits specified, and a schema identifier string ('delx/util-round-n/v1') confirming the result format.","failureModes":["Missing 'value' field returns validation error","Missing 'digits' field returns validation error","Non-numeric 'value' causes a type error","Negative or very large 'digits' may return unexpected results","Payment failure via x402 causes 402 response before computation"],"whenToPreferThis":"Use this endpoint when an AI agent needs a simple, verifiable, pay-per-use rounding operation with no signup overhead. Prefer it over client-side rounding when audit-trail or blockchain-verifiable computation delivery is required, or when operating in a fully agent-automated USDC payment pipeline on Base or Solana.","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-round-to-n-decimal-places-6e6228ee"}