fmod() fmod following formula doesn't seem to ever return NaN following formula doesn't seem to ever return NaN http://www.cplusplus.com/reference/cmath/fmod/ doesn't seem to ever return NaN following formula following formula following formula fmod following formula fmod following formula