{"uid":"cap_yJ80urVS1HajKGRl2Hs2a","slug":"one-engine-numeric-round-t2-084317a3","name":"ONE Engine Numeric Round (t2)","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/t2?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.0007","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.0007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XEBSTGPbMMelAZmU_9yKC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0007","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 with optional min/max clamping, scaling factor, offset, and digit precision control.","exampleAgentPrompt":"Round these numbers [3.14159, 2.71828, 1.41421] to 2 decimal places, clamping everything between 0 and 3.","exampleUseCases":[{"title":"Round financial totals for invoicing","prompt":"I have a list of invoice line totals like [12.3456, 99.999, 0.005, 44.1] — round each to 2 decimal places so I can display them as currency amounts."},{"title":"Clamp and round sensor readings","prompt":"I've got raw sensor values [−5.7, 102.334, 50.0, 77.8891] that should stay between 0 and 100 — round them to 1 decimal place and clamp any out-of-range values."},{"title":"Normalize scores with offset and scaling","prompt":"Take these raw scores [0.234, 0.876, 0.501, 0.128], multiply by 100, add an offset of 5, and round to the nearest whole number so I get clean percentage-style values."}],"resultDescription":"Returns a JSON object containing the transformed array of rounded (and optionally clamped/scaled/offset-adjusted) numeric values, reflecting the precision and bounds specified in the request.","failureModes":["Array exceeds 1000 elements — request rejected","Non-finite values (Infinity, NaN) in input array cause validation error","Invalid digits value (negative or non-integer) returns error","Payment failure via x402 prevents processing","min greater than max causes undefined or error behavior"],"whenToPreferThis":"Use this endpoint when an AI agent needs lightweight, pay-per-call numeric rounding with optional clamping and scaling, without spinning up a compute environment. Ideal for pipelines where numbers must be cleaned before display or storage, especially when combined with other ONE Engine utility calls in an agentic workflow. Prefer over general-purpose code execution when cost predictability ($0.0007/call) and simplicity matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:17.046Z","isFirstParty":false,"canonicalSlug":"one-engine-numeric-round-t2-084317a3"}