This %
(modulus) arithmetic operator returns the decimal part (remainder) of the quotient of the two expressions.
A % B
Here,
>>> 5 % 2
1
>>> 4.7 % 1
0.7000000000000002 # To know about this result more, refer to floating point numbers implementation
>>> (1+2j) % 1
2j