# ONE Engine Numeric Round (t2)

> ONE Engine Numeric Round (t2) is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.0007/call, status unknown (last checked 2026-10-02).

Rounds an array of numeric values with optional min/max clamping, scaling factor, offset, and digit precision control.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/numeric/round/t2?utm_source=zero.xyz
- Price: $0.0007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-numeric-round-t2-084317a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yJ80urVS1HajKGRl2Hs2a

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability one-engine-numeric-round-t2-084317a3 -d '<json body>'
```

Example prompt: Round these numbers [3.14159, 2.71828, 1.41421] to 2 decimal places, clamping everything between 0 and 3.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-numeric-round-t2-084317a3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
