Modified Mod so multiples of integers mod 1 are also 0