x %%= y
Assigns x to the value of x %% b. It is equivalent to x = x %% b.
x %% b
x = x %% b
This is fractional modulo, which is the remainder value of x divided by b. For integer values only, you can use %=.