The fmod Function

ANSI 4.5.6.4   Whether a domain error occurs or zero is returned when the fmod function has a second argument of zero

When the fmod function has a second argument of zero, the function returns zero.