Severity: Warning
Message: count(): Parameter must be an array or an object that implements Countable
Filename: controllers/calculator.php
Line Number: 37
A fraction is a form where the numbers are written in the numerator and the denominator. When two or more fractions are added or subtracted together, it is very important to have a common denominator for the fractions involved. Common denominator calculator is the fun tool which can give a common denominator to the fractions and can simplify it.
Example 1: Add the two given two fractions, 5/2 and 4/3.
Since we have to add ? 5/2 + 4/3
The above two fractions have different denominators, one has ‘2’ and the other has ‘3’.
We need to get a common denominator ? LCM of ‘2’ and ‘3’ = 6
Hence for the first fraction we get ? (5 * 3)/ (2 * 3) = 15/6
For the second fraction we get ? (4 * 2)/ (3 * 2) = 8/6
Add the fractions ? 15/ 6 + 8/6 = (15 + 8)/ 6 = 23/6
Example 2: Subtract the given two fractions, 3/5 and 4/7.
Since we have to subtract ? 3/5 – 4/7
The above two fractions have different denominators, one has ‘5’ and the other has ‘7’.
We need to get a common denominator ? LCM of ‘5’ and ‘7’ = 35
Hence for the first fraction we get ? (3 * 7)/ (5 * 7) = 21/35
For the second fraction we get ? (4 * 5)/ (7 * 5) = 20/35
Subtract the fractions ? 21/35 – 20/35 = (21 – 20)/ 35 = 1/35