{
    "slug": "long-division-and-long-arithmetic-calculator",
    "name": "Long Division and Long Arithmetic Calculator",
    "url": "https://directory.milunir.com/math-calculators/basic-math/long-division-and-long-arithmetic-calculator/",
    "description": "Long division with the remainder, modulo and every bring-down step, plus long multiplication, addition and subtraction worked column by column.",
    "inputs": {
        "type": "object",
        "properties": {
            "mode": {
                "type": "string",
                "enum": [
                    "divide",
                    "multiply",
                    "add",
                    "subtract"
                ],
                "description": "Mode",
                "default": "divide"
            },
            "dividend": {
                "type": "number",
                "description": "Dividend (number being divided)",
                "default": 997
            },
            "divisor": {
                "type": "number",
                "description": "Divisor (number you divide by)",
                "default": 7
            },
            "places": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10,
                "description": "Decimal places. How many digits after the decimal point to work out past the remainder.",
                "default": 2
            },
            "a": {
                "type": "number",
                "description": "First number",
                "default": 478
            },
            "b": {
                "type": "number",
                "description": "Second number",
                "default": 356
            }
        },
        "additionalProperties": false
    },
    "outputs": [
        {
            "key": "primary",
            "label": "Answer"
        },
        {
            "key": "check",
            "label": "Check"
        },
        {
            "key": "detail",
            "label": "Detail"
        },
        {
            "key": "quotient",
            "label": "Whole quotient"
        },
        {
            "key": "remainder",
            "label": "Remainder"
        },
        {
            "key": "mod",
            "label": "Modulo"
        },
        {
            "key": "decimal",
            "label": "Decimal quotient"
        },
        {
            "key": "digits",
            "label": "Long division digits"
        }
    ],
    "modes": [
        {
            "id": "divide",
            "label": "Divide",
            "inputs": [
                "dividend",
                "divisor",
                "places"
            ]
        },
        {
            "id": "multiply",
            "label": "Multiply",
            "inputs": [
                "a",
                "b"
            ]
        },
        {
            "id": "add",
            "label": "Add",
            "inputs": [
                "a",
                "b"
            ]
        },
        {
            "id": "subtract",
            "label": "Subtract",
            "inputs": [
                "a",
                "b"
            ]
        }
    ],
    "feed": null,
    "endpoint": "https://api.tools-directory.workers.dev/v1/tools/long-division-and-long-arithmetic-calculator",
    "mcp_tool": "long_division_and_long_arithmetic_calculator",
    "example": {
        "inputs": {
            "mode": "divide",
            "dividend": 997,
            "divisor": 7,
            "places": 2
        },
        "output": "Answer: 142 R 3\nCheck: 7 × 142 + 3 = 997\nDetail: ≈ 142.43; 997 mod 7 = 3"
    }
}