{"uid":"cap_pBDkjMP_DmcQOE7m2XSwa","slug":"one-engine-numeric-rounding-49807697","name":"ONE Engine Numeric Rounding","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/numeric/round/t7?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["values"],"properties":{"max":{"type":"number"},"min":{"type":"number"},"size":{"type":"integer"},"digits":{"type":"integer"},"factor":{"type":"number"},"offset":{"type":"number"},"values":{"type":"array","description":"Finite numbers, maximum 1000"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0065","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.0065/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ADEdsdryXJ3Ohu3SciYX9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0065","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rounds an array of numeric values according to configurable precision and scaling options","exampleAgentPrompt":"Round these numbers [3.14159, 2.71828, 1.41421] to 2 decimal places for me.","exampleUseCases":[{"title":"Financial price rounding","prompt":"I have a list of computed prices — [12.3467, 5.9991, 99.9999, 0.12345] — can you round them all to 2 decimal places so they're ready to display as currency?"},{"title":"Sensor data normalization","prompt":"Round these raw sensor readings [0.0013456, 0.0027891, 0.0009123] to 4 decimal digits before I log them to the database."},{"title":"Score clamping and rounding","prompt":"I've got a list of model confidence scores [0.8734, 1.2341, -0.0512, 0.9999] — round them to 2 digits and clamp them between 0 and 1."}],"resultDescription":"Returns a JSON object containing the processed array of numbers, each rounded and optionally scaled, offset, or clamped according to the specified parameters.","failureModes":["Passing more than 1000 values causes rejection","Non-finite values (NaN, Infinity) in the input array may cause errors","Missing required 'values' field returns a validation error","Invalid types for digit/factor/offset parameters return schema errors"],"whenToPreferThis":"Choose this endpoint when you need lightweight, low-cost server-side rounding of numeric arrays, especially in agent pipelines that need consistent decimal normalization without setting up local math libraries. Ideal for financial figures, sensor data, or any computed values that need precision control before display or storage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:15.484Z","isFirstParty":false,"canonicalSlug":"one-engine-numeric-rounding-49807697"}