in R, I want to check if a number is a multiple of another. this works well for integers
> 124%%1
[1] 0
> 124%%2
[1] 0
But for some mysterious reason doesn't work well with decimal numbers, any idea why 1.05%%0.05 is not 0?
> 0.05%%0.05
[1] 0
> 1.05%%0.05
[1] 0.05