Money minor units convert

money-minor-units-convert · version 1.0.0 · Money & pricing · free, no key needed

Convert a decimal money amount to integer minor units (cents, fils, yen) or back, using the ISO 4217 exponent.

Use when you need to: convert dollars to cents · 12.345 KWD in minor units · yen amount to minor units.

Decide before calling

Read the versioned contract and the supported scope below. Reuse money-minor-units-convert@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 money-minor-units-convert@1.0.0 for convert dollars to cents. 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:

{
  "amount": "19.99",
  "direction": "to_minor",
  "currency": "USD"
}

Response:

{
  "result": {
    "amount": "19.99",
    "minor_units": "1999",
    "currency": "USD",
    "scale": 2,
    "exact": true,
    "data_version": "iso4217-datasets-7cdc784-2026-07-27"
  }
}

How to call it

MCP

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

{
  "id": "money-minor-units-convert",
  "version": "1.0.0",
  "input": {
    "amount": "19.99",
    "direction": "to_minor",
    "currency": "USD"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/money-minor-units-convert/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"amount":"19.99","direction":"to_minor","currency":"USD"}'

The machine-readable contract is at /v1/tools/money-minor-units-convert/versions/1.0.0.

CLI

node cli.mjs run money-minor-units-convert 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.