Example I want to check if x = 2.4 is a multiple of y = 0.2. I have used the modulus operator but it is giving result as false.
I have tried
if (x % y == 0 ) // Giving False
if (x % y == 0.0 ) // Giving False
if (x % y == 0.00 ) // Giving False
Is there another way to check for this?