{"uid":"cap_1w1ircDMb7RQhYitXmt99","slug":"one-engine-number-rounding-43f01dc3","name":"ONE Engine Number Rounding","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/number/round?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"number"},"digits":{"type":"integer","maximum":12,"minimum":0}}},"responseSchema":{"type":"json","example":{"value":12.35}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0009","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.0009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nJNbbVy0aQ5dZnrB0KTtc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0009","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 the number 12.3456 to 2 decimal places for me.","exampleUseCases":[{"title":"Currency amount rounding for invoices","prompt":"I need to round 47.8963 to exactly 2 decimal places so I can display it as a dollar amount on an invoice."},{"title":"Rounding scientific measurement output","prompt":"Take this sensor reading of 0.000456789 and round it to 4 decimal places so I can log it cleanly."},{"title":"Rounding zero decimals for a whole number","prompt":"Round 99.7312 to 0 decimal places so I get just a whole number back."}],"resultDescription":"A JSON object containing a single field 'value' with the rounded numeric result, e.g. {\"value\": 12.35}.","failureModes":["Missing 'value' field returns a validation error","'digits' outside range 0–12 is rejected","Non-numeric input for 'value' causes a parse error","Network or payment failure returns a 402 or 5xx error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs deterministic, server-side numeric rounding to a precise number of decimal places, especially in micropayment-friendly agentic pipelines already using the x402/Base payment protocol. Useful when you want a lightweight, pay-per-call utility rather than embedding rounding logic client-side.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:33.463Z","isFirstParty":false,"canonicalSlug":"one-engine-number-rounding-43f01dc3"}