The results take the sign of the dividend:MOD (-17, 4) = -1 MOD (-17, -4) = -1 MOD (17, -4) = 1 MOD (17, 4) = 1