fmod - returns the remainder of x/y with the same sign as x
vector1 fmod(vector1 x, vector1 y); vector2 fmod(vector2 x, vector2 y); vector3 fmod(vector3 x, vector3 y); vector4 fmod(vector4 x, vector4 y);
- Vector or scalar numerator
- Vector or scalar denominator
fmod returns the remainder of x divided by y with the same sign as x. If y is zero, the result is implementation-defined because of division by zero.
For vectors, the returned vector contains the signed remainder of each element of the input vector.