Decimal divide

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

Divide two decimal strings exactly, rounding the quotient once to a fixed scale, and report the exact remainder.

Use when you need to: divide two decimals exactly · exact decimal division with rounding · quotient and remainder of decimal division.

Decide before calling

Read the versioned contract and the supported scope below. Reuse decimal-divide@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-divide@1.0.0 for divide two decimals exactly. 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:

{
  "dividend": "10",
  "divisor": "3",
  "scale": 2,
  "rounding": "half_even"
}

Response:

{
  "result": {
    "value": "3.33",
    "exact": false,
    "remainder": "0.01"
  }
}

How to call it

MCP

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

{
  "id": "decimal-divide",
  "version": "1.0.0",
  "input": {
    "dividend": "10",
    "divisor": "3",
    "scale": 2,
    "rounding": "half_even"
  }
}

HTTP (no key)

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

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

CLI

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

Get the client at /clients/cli/.