# Delx Commerce — Round to N Decimal Places

> Delx Commerce — Round to N Decimal Places is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Rounds a numeric value to a specified number of decimal digits and returns the result.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/round-n?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-round-to-n-decimal-places-6e6228ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n2XFV5QhfA2q_reoQPfLo

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 delx-commerce-round-to-n-decimal-places-6e6228ee -d '<json body>'
```

Example prompt: Round 3.14159 to 2 decimal places for me.

## When to prefer this

Use this endpoint when an AI agent needs a simple, verifiable, pay-per-use rounding operation with no signup overhead. Prefer it over client-side rounding when audit-trail or blockchain-verifiable computation delivery is required, or when operating in a fully agent-automated USDC payment pipeline on Base or Solana.

## Known failure modes

- Missing 'value' field returns validation error
- Missing 'digits' field returns validation error
- Non-numeric 'value' causes a type error
- Negative or very large 'digits' may return unexpected results
- Payment failure via x402 causes 402 response before computation

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the rounded value, the number of digits specified, and a schema identifier string ('delx/util-round-n/v1') confirming the result format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "number",
   "description": "Input field: value."
  },
  "digits": {
   "type": "integer",
   "description": "Input field: digits."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "value": 3.14,
  "digits": 2,
  "schema": "delx/util-round-n/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-round-to-n-decimal-places-6e6228ee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
