{"id":"rational-to-mixed-number","version":"1.0.0","description":"Convert a rational number into a sign, whole part, and proper-fraction numerator/denominator.","supported_operations":["rational to mixed number","convert fraction to mixed number","improper fraction to mixed number"],"unsupported_operations":["mixed number to rational","decimal conversion"],"semantics":["Input is an object with canonical integer-string numerator and denominator fields; denominator must be a positive canonical integer.","The input need not be in lowest terms; it is reduced first.","whole is floor(|numerator| / denominator) and the output numerator is |numerator| mod denominator, so 0 <= numerator < denominator.","negative is true only when the reduced value is strictly negative; zero is always negative:false, whole:\"0\", numerator:\"0\".","The output denominator equals the reduced input denominator; the fractional part is already in lowest terms because the reduced whole rational was.","Each field may have at most 1000 digits excluding sign."],"limits":{"max_digits":1000},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["numerator","denominator"],"properties":{"numerator":{"type":"string","maxLength":1001},"denominator":{"type":"string","maxLength":1001}}},"output_schema":{"type":"object","additionalProperties":false,"required":["negative","whole","numerator","denominator"],"properties":{"negative":{"type":"boolean"},"whole":{"type":"string"},"numerator":{"type":"string"},"denominator":{"type":"string"}}},"examples":[{"input":{"numerator":"-7","denominator":"2"},"output":{"negative":true,"whole":"3","numerator":"1","denominator":"2"}}],"execute_url":"/v1/tools/rational-to-mixed-number/versions/1.0.0/execute"}