Fraction Simplifier: API and MCP
Fraction Simplifier over REST and MCP: input fields, limits, outputs, one example request and its real answer. Free, no sign-up.
GET /api/v1/tools/math.fraction/mcp/math
- Id
math.fraction- Version
- 1.0.0
- Access
- Free
- Tool page
- Fraction Simplifier
- Schema
GET /api/v1/tools/math.fraction
Input
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
numerator (required) | integer | ≥ -1,000,000,000,000, ≤ 1,000,000,000,000 | Numerator | |
denominator (required) | integer | ≥ -1,000,000,000,000, ≤ 1,000,000,000,000 | Denominator |
Output
| Field | Type | Description |
|---|---|---|
simplifiedNumerator | number | Simplified numerator |
simplifiedDenominator | number | Simplified denominator |
gcd | number | GCD (greatest common divisor) |
decimal | number | Decimal value |
wholePart | number | Whole part |
remainder | number | Remainder (numerator of the mixed number) |
signMoved | boolean | The denominator was negative; the minus sign was moved to the numerator. |
Example request
{
"input": {
"numerator": 84,
"denominator": 126
},
"locale": "en"
}Example answer
{
"output": {
"simplifiedNumerator": 2,
"simplifiedDenominator": 3,
"gcd": 42,
"decimal": 0.6666666666666666,
"wholePart": 0,
"remainder": 2,
"signMoved": false
},
"steps": [
{
"id": "gcd",
"formula": "GCD = gcd(|numerator|, denominator)",
"substitution": "GCD = gcd(84, 126)",
"value": 42
},
{
"id": "simplifiedNumerator",
"formula": "simplified numerator = numerator / GCD",
"substitution": "simplified numerator = 84 / 42",
"value": 2
},
{
"id": "simplifiedDenominator",
"formula": "simplified denominator = denominator / GCD",
"substitution": "simplified denominator = 126 / 42",
"value": 3
},
{
"id": "decimal",
"formula": "decimal = numerator / denominator",
"substitution": "decimal = 84 / 126",
"value": 0.6666666666666666
},
{
"id": "wholePart",
"formula": "whole part = (simplified numerator − remainder) / simplified denominator",
"substitution": "whole part = (2 − 2) / 3",
"value": 0
},
{
"id": "remainder",
"formula": "remainder = simplified numerator − whole part × simplified denominator",
"substitution": "remainder = 2 − 0 × 3",
"value": 2
}
],
"meta": {
"toolVersion": "1.0.0",
"locale": "en"
},
"citation": {
"url": "https://hesaplayici.com/en/math/simplify-fractions-calculator",
"title": "Fraction Simplifier"
}
}