# ONE Engine Number Truncate

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

Truncates a floating-point number to its integer part by removing the decimal portion, returning the truncated value.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/number/truncate?utm_source=zero.xyz
- Price: $0.0009/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-number-truncate-2a516b67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VMY9MDTZOJbSdLTP_Z7iU

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-number-truncate-2a516b67 -d '<json body>'
```

Example prompt: Truncate the number 47.83 for me — I need just the integer part with the decimal stripped off, not rounded.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call truncation operation within an autonomous agent workflow that already uses x402 on Base for micropayments. It is ideal for numerical normalization steps inside pipelines where spinning up a compute environment is overkill and you want a simple, cheap utility call. Prefer it over Math.trunc implementations when your agent lacks a code execution sandbox.

## Known failure modes

- Missing or non-numeric 'value' field in request body may return a validation error
- Extremely large or Infinity/NaN values may produce unexpected results
- Payment failure via x402 will result in a 402 response before computation occurs

## How this service works

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

## Output

A JSON object with a 'value' field containing the truncated integer result of the input number (e.g., {"value": -12} for input -12.7). The fractional part is discarded, not rounded; negative numbers truncate toward zero.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "value": -12
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-number-truncate-2a516b67/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)
