{"uid":"cap_xK0jP09Q5f4rqayHAX1qL","slug":"one-engine-numeric-absolute-value-3101042e","name":"ONE Engine Numeric Absolute Value","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/absolute/t6?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.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j96oC_gXl6tq-mB5q_Wb6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes absolute values of an array of numeric inputs, with optional scaling, offsetting, and digit-rounding controls.","exampleAgentPrompt":"Take the absolute values of these numbers [-3.7, 0, 5.2, -11, 8.4], round the results to 1 decimal place, and multiply everything by a factor of 2.","exampleUseCases":[{"title":"Clean signed sensor readings","prompt":"I have these raw sensor readings that can go negative due to calibration drift: [-0.5, 1.2, -3.1, 0.8, -2.2]. Can you take the absolute values and round each to 2 decimal places so I can use them downstream?"},{"title":"Normalize financial deltas","prompt":"Here are my portfolio daily change values: [-150.5, 200.0, -75.25, 0, 320.1]. I want the absolute value of each scaled by a factor of 0.01 so I get fractional form, offset by 0.001."},{"title":"Prepare magnitude array for plotting","prompt":"I need the absolute values of this dataset [-5, -3, -1, 0, 1, 3, 5] clamped between 0 and 4, rounded to whole integers, so I can use them as bar chart heights."}],"resultDescription":"Returns a JSON object containing the transformed array of absolute values, with optional min/max clamping, factor scaling, offset application, and digit rounding applied as specified. The response schema is open (additionalProperties: true), so may include metadata or auxiliary fields.","failureModes":["Array exceeds 1000 element limit — request rejected","Non-finite values (NaN, Infinity) in the values array — validation error","Payment failure via x402 on Base — 402 response, no computation performed","Malformed JSON body — 400 bad request","Invalid type for numeric parameters (e.g. string instead of number) — schema validation error"],"whenToPreferThis":"Choose this endpoint when you need a cheap, pay-per-call absolute value transformation for up to 1000 numbers, especially with combined scaling, offsetting, clamping, or digit-precision options in a single call. It is ideal for autonomous agents running on Base that want deterministic numerical processing without spinning up compute infrastructure. Prefer it over general-purpose math libraries when operating in an agentic pipeline that already uses x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:52.693Z","isFirstParty":false,"canonicalSlug":"one-engine-numeric-absolute-value-c14f2892"}