Fraction to decimal expand

fraction-to-decimal-expand · version 1.0.0 · Money & pricing · free, no key needed

Expand an integer fraction into its exact decimal with the minimal repeating block marked, e.g. 1/7 as 0.(142857).

Use when you need to: convert fraction to repeating decimal · what is 1/7 as a decimal · find the repeating block of a fraction.

Decide before calling

Read the versioned contract and the supported scope below. Reuse fraction-to-decimal-expand@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 fraction-to-decimal-expand@1.0.0 for convert fraction to repeating decimal. 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:

{
  "numerator": "1",
  "denominator": "7"
}

Response:

{
  "result": {
    "notation": "0.(142857)",
    "integer_part": "0",
    "non_repeating": "",
    "repeating": "142857",
    "period_length": 6,
    "terminating": false,
    "negative": false
  }
}

How to call it

MCP

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

{
  "id": "fraction-to-decimal-expand",
  "version": "1.0.0",
  "input": {
    "numerator": "1",
    "denominator": "7"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/fraction-to-decimal-expand/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"numerator":"1","denominator":"7"}'

The machine-readable contract is at /v1/tools/fraction-to-decimal-expand/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.