For quotients, with values such as 2.00, 3.00, we might get the wrong output.
Maybe calculating the remainder of the resultant value when divided by 1 would be a better option.
1. m=3, QR=5
= QR/MOQ
result = 5/3 =1.6667…
((result mod 1) == 0) //Returns false as the value contains decimals.
2. m=3, QR=6
= QR/MOQ
result = 6/3 = 2.00
((result mod 1) == 0) //Returns true as there are no decimal values.