I don't understand why % works like this:
>>> 5 % 0.5 == 0
True
>>> 5 % 0.25 == 0
True
>>> 5 % 0.2 == 0
False
>>> 5 % 0.1 == 0
False
Can someone explain this to me? I need to check if user input divides a series of numbers. Program accepts the input only if all numbers are divisible by user input, otherwise it asks the user for another number.