#include <math.h>
float fmod (
float x, /* value to calculate modulo for */
float y); /* integer portion of modulo */
Description
The fmod function returns a value f such that
f has the same sign as x, the absolute
value of f is less than the absolute value of y, and there exists an integer k such that:
k * y + f =
x
If the quotient x / y cannot
be represented, the result is undefined.
Return Value
The fmod function returns the floating-point remainder of
x / y.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.