Decimal subtract

decimal-subtract · version 1.0.0 · Numbers & math · free, no key needed

Exact decimal subtraction a minus b of canonicalizable decimal strings.

Use when you need to: decimal subtract · subtract decimals · exact decimal difference.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "a": "2.00",
  "b": "0.1"
}

Response:

{
  "result": {
    "value": "1.9"
  }
}

How to call it

MCP

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

{
  "id": "decimal-subtract",
  "version": "1.0.0",
  "input": {
    "a": "2.00",
    "b": "0.1"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/decimal-subtract/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"a":"2.00","b":"0.1"}'

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

CLI

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

Get the client at /clients/cli/.