{"id":"mixed-number-to-rational","version":"1.0.0","description":"Convert a mixed number (sign, whole part, proper-fraction numerator and denominator) into a single reduced rational.","supported_operations":["mixed number to rational","convert mixed number to fraction","mixed fraction to improper fraction"],"unsupported_operations":["rational to mixed number","decimal conversion","negative whole or fraction fields"],"semantics":["Input has a boolean negative field, and canonical non-negative integer-string whole and numerator fields, and a canonical positive integer-string denominator field.","whole and numerator carry only magnitude; sign is expressed solely by the negative field, so -0 is rejected on those two fields (0 is required instead).","numerator need not be less than denominator; an improper fraction part is accepted and combined normally.","The value is (negative ? -1 : 1) * (whole * denominator + numerator) / denominator, reduced by gcd with sign only on the output numerator.","A zero value (whole 0, numerator 0, any sign) always reduces to output numerator 0 over denominator 1.","Each field and the output numerator and denominator 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":["negative","whole","numerator","denominator"],"properties":{"negative":{"type":"boolean"},"whole":{"type":"string","maxLength":1000},"numerator":{"type":"string","maxLength":1000},"denominator":{"type":"string","maxLength":1001}}},"output_schema":{"type":"object","additionalProperties":false,"required":["numerator","denominator"],"properties":{"numerator":{"type":"string"},"denominator":{"type":"string"}}},"examples":[{"input":{"negative":true,"whole":"3","numerator":"1","denominator":"2"},"output":{"numerator":"-7","denominator":"2"}}],"execute_url":"/v1/tools/mixed-number-to-rational/versions/1.0.0/execute"}