FANDOM


Fmod

Name Edit

fmod - returns the remainder of x/y with the same sign as x

Synopsis Edit

vector1 fmod(vector1 x, vector1 y);
vector2 fmod(vector2 x, vector2 y);
vector3 fmod(vector3 x, vector3 y);
vector4 fmod(vector4 x, vector4 y);

Parameters Edit

x
Vector or scalar numerator
y
Vector or scalar denominator

Description Edit

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.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.