The remainder 0.018885 % 0.000005 is not equal to 0. Explain how this happens and how to handle such cases. How can i catch this case? My solution is to use regular expressions to determine the number of decimal places, then cast the float to an integer, and finally find the remainder. In this case, everything works correctly, but I'm wondering how this can be solved in another way, and I'm not sure that such a solution will work for every case. Thank you!