Why modulo 0.6 % 0.2 not zero?

The remainder of the division:
>>> 6 % 2
0
>>> 4 % 2
0
>>> 3 % 2
1


Why this happening:
>>> 0.2 % 0.2
0.0
>>> 0.4 % 0.2
0.0
>>> 0.6 % 0.2
0.19999999999999996
>>> 0.8 % 0.2
0.0
>>> 1 % 0.2
0.19999999999999996


In this case, to know the parity of decimal numbers?
March 23rd 20 at 19:34
2 answers
March 23rd 20 at 19:38
Maybe I'm wrong, but "Parity in number theory — characteristics-of-integer"(C)Wiki.
Yes, you are wrong. - Jodie commented on March 23rd 20 at 19:41
Parity is only for integers. For real parity does not make sense. - Jameson_Stanton commented on March 23rd 20 at 19:44

Find more questions by tags Python