Decimal root

decimal-root · version 1.0.0 · Money & pricing · free, no key needed

Real nth root (2 to 100) of a decimal string, correctly rounded once to a fixed scale with an explicit mode.

Use when you need to: square root to 20 decimal places · cube root of a number with rounding · nth root of a decimal correctly rounded.

Decide before calling

Read the versioned contract and the supported scope below. Reuse decimal-root@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use decimal-root@1.0.0 for square root to 20 decimal places. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "value": "2",
  "scale": 20,
  "rounding": "half_even"
}

Response:

{
  "result": {
    "value": "1.41421356237309504880",
    "exact": false
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "decimal-root",
  "version": "1.0.0",
  "input": {
    "value": "2",
    "scale": 20,
    "rounding": "half_even"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/decimal-root/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"value":"2","scale":20,"rounding":"half_even"}'

The machine-readable contract is at /v1/tools/decimal-root/versions/1.0.0.

CLI

node cli.mjs run decimal-root 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.