{"id":"integer-divmod","version":"1.0.0","description":"Integer quotient and remainder truncated toward zero.","supported_operations":["integer divmod","integer quotient remainder","divide integers with remainder"],"unsupported_operations":["floor division","euclidean remainder","modular inverse","floating point division","rational division"],"semantics":["Inputs are canonical integer strings: 0 or an optional ASCII minus followed by a non-zero leading digit.","The input -0 is accepted and canonicalized to 0; plus signs, spaces, underscores, hex, exponents, and leading zeros are rejected.","Values are parsed with BigInt. Each input may have at most 1000 digits excluding the sign.","Quotient and remainder match JavaScript BigInt / and %: truncation toward zero, remainder sign follows the dividend.","Divisor 0 is rejected.","The identity quotient * divisor + remainder equals dividend holds, and the absolute remainder is strictly less than the absolute divisor.","Outputs are canonical integer strings."],"limits":{"max_digits":1000},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["dividend","divisor"],"properties":{"dividend":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)$","maxLength":1001},"divisor":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)$","maxLength":1001}}},"output_schema":{"type":"object","additionalProperties":false,"required":["quotient","remainder"],"properties":{"quotient":{"type":"string"},"remainder":{"type":"string"}}},"examples":[{"input":{"dividend":"17","divisor":"5"},"output":{"quotient":"3","remainder":"2"}}],"execute_url":"/v1/tools/integer-divmod/versions/1.0.0/execute"}