What does modulo in the following piece of code do?
from math import * 3.14 % 2 * pi
How do we calculate modulo on a floating point number?
same as a normal modulo 3.14 % 6.28 = 3.14, just like 3.14%4 =3.14 3.14%2 = 1.14 (the remainder...)
3.14 % 6.28 = 3.14
3.14%4 =3.14
3.14%2 = 1.14