{
  "slug": "percent-difference-calculator",
  "name": "gizza-ai/percent-difference-calculator",
  "version": "0.1.0",
  "title": "Percent Difference Calculator — Percentage Difference & Percent Change — gizza.ai",
  "description": "Compare two numbers: absolute difference, symmetric percentage difference, and percent change in both directions. Runs in your browser, nothing uploaded.",
  "tags": [
    "percent difference calculator",
    "percentage difference calculator",
    "percent change calculator",
    "difference between two numbers",
    "percentage increase or decrease",
    "symmetric percent difference",
    "compare two values",
    "percent error alternative"
  ],
  "category": "math",
  "urls": {
    "page": "https://gizza.ai/tools/percent-difference-calculator/",
    "markdown": "https://gizza.ai/tools/percent-difference-calculator/index.md",
    "descriptor": "https://gizza.ai/tools/percent-difference-calculator/tool.json",
    "deep_link_example": "https://gizza.ai/tools/percent-difference-calculator/?a=70&b=85&mode=all&decimals=4"
  },
  "cli": "gizza tool percent-difference-calculator \"70\" 'b=85'",
  "tool": {
    "description": "Compare two numbers and report how far apart they are. Returns the absolute difference |a - b|, the signed difference b - a with its direction, the mean, the symmetric percent difference |a - b| / |mean| * 100 (order-independent — swapping a and b gives the same answer), and the directional percent change (b - a) / |a| * 100 in both directions plus the ratio b / a. Set mode to all (default), difference, or change to pick which measures are reported, and decimals (0-10, default 4) for display precision. Negative values are supported; a measure whose denominator is zero is omitted with an explanation.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "a": {
          "description": "First value to compare (the baseline for percent change). Any finite number, negatives included.",
          "type": "number"
        },
        "b": {
          "description": "Second value to compare (the new value for percent change). Any finite number, negatives included.",
          "type": "number"
        },
        "decimals": {
          "default": 4,
          "description": "Decimal places to show in the report, 0 to 10 (default 4). Display only — the arithmetic is always done at full precision.",
          "maximum": 10,
          "minimum": 0,
          "type": "integer"
        },
        "mode": {
          "default": "all",
          "description": "Which measures to report. all: both blocks (default). difference: the symmetric percent difference |a - b| / |mean| * 100, which is order-independent. change: the directional percent change (b - a) / |a| * 100 in both directions plus the ratio b / a.",
          "enum": [
            "all",
            "difference",
            "change"
          ],
          "type": "string"
        }
      },
      "required": [
        "a",
        "b"
      ],
      "type": "object"
    }
  }
}