Mixed number to rational

mixed-number-to-rational · version 1.0.0 · Numbers & math · free, no key needed

Convert a mixed number (sign, whole part, proper-fraction numerator and denominator) into a single reduced rational.

Use when you need to: mixed number to rational · convert mixed number to fraction · mixed fraction to improper fraction.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "negative": true,
  "whole": "3",
  "numerator": "1",
  "denominator": "2"
}

Response:

{
  "result": {
    "numerator": "-7",
    "denominator": "2"
  }
}

How to call it

MCP

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

{
  "id": "mixed-number-to-rational",
  "version": "1.0.0",
  "input": {
    "negative": true,
    "whole": "3",
    "numerator": "1",
    "denominator": "2"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/mixed-number-to-rational/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"negative":true,"whole":"3","numerator":"1","denominator":"2"}'

The machine-readable contract is at /v1/tools/mixed-number-to-rational/versions/1.0.0.

CLI

node cli.mjs run mixed-number-to-rational 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.