Whether a domain error occurs or zero is returned when the fmod function has a second argument of zero (7.5.6.4). Zero is returned when the second argument to fmod is zero.