If perfect division occurs between two numbers, I want the result to be converted into an integer but if perfect division does not occur between the two numbers, then no change should be made.
For example, 6/2 gives the result 3.0. Since this is perfect division, the 3.0 should be converted into 3. On the other hand if I have 14/4, which gives result 3.5, it should stay as it is since perfect division has not occurred.
Here by perfect division I mean a divided by b yields an integer