Double support added for modulus operations via fmod