How it works
- Convert each mixed number to an improper fraction:
a b/c = (a·c + b) / c(with the sign attached to the numerator). - Apply the operation:
- Add: p/q + r/s = (p·s + r·q) / (q·s)
- Subtract: p/q − r/s = (p·s − r·q) / (q·s)
- Multiply: p/q × r/s = (p·r) / (q·s)
- Divide: p/q ÷ r/s = (p·s) / (q·r)
- Simplify by dividing numerator and denominator by their GCD.
- Convert back to a mixed number: integer =
floor(|p|/q), remaining fraction =(|p| mod q)/q.
FAQ
How do I type a mixed number?
Use a space between the integer and the fraction part: 3 1/4. Plain fractions like 5/8 and integers like 7 work too. A leading minus applies to the whole value.
What does the calculator do with negatives?
Any of the inputs can be negative. Internally it stores the sign on the numerator of the improper fraction; the final answer is shown with the sign in the natural place (in front of the integer part of a mixed number, or on the numerator of an improper fraction).
What if my answer is a whole number?
You'll see the integer (e.g. "5") with the improper-fraction column showing 5/1.