{"uid":"cap_r5gzs2eD4M8HU5z1SBNpB","slug":"one-engine-numeric-round-t4-4995c63e","name":"ONE Engine Numeric Round (t4)","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/t4?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.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QRZk8qFKjeVmggQh8LubS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","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 numbers to a specified number of decimal digits, with optional scaling by factor and offset, min/max clamping, and output size control.","exampleAgentPrompt":"Round these numbers [1.2345, 9.8765, 3.14159, 42.001] to 2 decimal places, clamping the results between 1 and 10.","exampleUseCases":[{"title":"Rounding financial transaction amounts","prompt":"I have a list of raw transaction values [15.6789, 0.1234, 99.9951, 7.005] — can you round each one to 2 decimal places so they're ready for display?"},{"title":"Normalizing sensor readings with scaling","prompt":"Take these raw temperature readings [100.456, 200.789, 150.123], multiply each by 0.1, then round to 1 decimal place and clamp everything between 10 and 20."},{"title":"Preparing scores for leaderboard display","prompt":"I have 5 player scores [88.4321, 72.9987, 95.1111, 60.5678, 81.2222] — round them all to the nearest whole number so I can show them on a leaderboard."}],"resultDescription":"Returns an object containing the processed array of numbers, each rounded to the specified number of decimal digits, optionally scaled by a factor, shifted by an offset, and clamped within min/max bounds. Output size can also be controlled.","failureModes":["Array exceeds 1000 element limit — request rejected","Non-finite values (NaN, Infinity) in the input array — may cause errors or be filtered","Invalid digits parameter (negative or non-integer) — malformed request error","Payment failure via x402 — 402 response, call not executed","Empty values array — may return empty result or error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call numeric rounding and normalization utility that also supports scaling, offsetting, and clamping in a single step, without standing up your own math service. Ideal for AI agents running in serverless pipelines on Base that need deterministic numeric transformations at $0.0015 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:15.462Z","isFirstParty":false,"canonicalSlug":"one-engine-numeric-round-t4-4995c63e"}