REMAINDER(3) BSD Library Functions Manual REMAINDER(3)NAME
remainder — floating-point remainder function
remainder(double x, double y);
remainderf(float x, float y);
The remainder() and remainderf() functions compute the value r such that
r = x - n*y, where n is the integer nearest the exact value of x/y.
If there are two integers closest to x/y, n shall be the even one. If r
is zero, it is given the same sign as x.
remainder(x, y) returns a NaN and raises the "invalid" floating-point
exception if x is infinite or y is 0.
The remainder() and remainderf() functions conform to ISO/IEC
BSD July 22, 2003 BSD