Remove remainder checks

The %% operator is machine dependent when used with non-integer divisor.
On my PC for example 50 %% 0.1 evaluates to 0.1, not to 0 as expected.