hesaplayıcı
Menu

Percentage Change Calculator: API and MCP

Percentage Change Calculator over REST and MCP: input fields, limits, outputs, one example request and its real answer. Free, no sign-up.

GET /api/v1/tools/math.percentage-change/mcp/math

Id
math.percentage-change
Version
1.0.0
Access
Free
Tool page
Percentage Change Calculator
Schema
GET /api/v1/tools/math.percentage-change

Input

FieldTypeConstraintsDefaultDescription
oldValue (required)number≥ -1,000,000,000,000,000, ≤ 1,000,000,000,000,000Old value
newValue (required)number≥ -1,000,000,000,000,000, ≤ 1,000,000,000,000,000New value

Output

FieldTypeDescription
changenumberPercentage change (%)
differencenumberDifference (new − old)
rationumberRatio new / old

Example request

{
  "input": {
    "oldValue": 250,
    "newValue": 300
  },
  "locale": "en"
}
Example answer
{
  "output": {
    "change": 20,
    "difference": 50,
    "ratio": 1.2
  },
  "steps": [
    {
      "id": "difference",
      "formula": "difference = new − old",
      "substitution": "difference = 300 − 250",
      "value": 50
    },
    {
      "id": "change",
      "formula": "percentage change = difference / |old| × 100",
      "substitution": "percentage change = 50 / 250 × 100",
      "value": 20,
      "unit": "%"
    },
    {
      "id": "ratio",
      "formula": "ratio = new / old",
      "substitution": "ratio = 300 / 250",
      "value": 1.2
    }
  ],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/math/percentage-change-calculator",
    "title": "Percentage Change Calculator"
  }
}