fmod()
The function returns the remainder of the division of the passed values.
Synopsis
float fmod(float x, float y);
Parameters
Parameter | Description |
---|---|
x, y | Values |
Return value
In the event of errors, the function returns 0.0. The return value for y=0 is -1.#IND.
Error
Description
Returns the remainder of a division x/y with the sign of x.
main()
{
DebugN(fmod(-10,3)); // -10.00/3.00 returns -1.00
}
Assignment
Mathematical function
Availability
CTRL