1 .TH REMAINDER 3 "December 18, 2009"
4 remainder \- floating point remainder after division
10 double remainder(double \fIx\fP, double \fIy\fP);
13 This function returns the remainder of a division of \fIx\fP by \fIy\fP. More
14 formally, it computes which integer \fIn\fP is closest to the fraction
15 \fIx\fP/\fIy\fP and returns \fIx\fP - \fIn\fP*\fIy\fP. An even value for
16 \fIn\fP is preferred over an odd one if both are equally far away (that is,
17 banker's rounding is applied). If \fIx\fP is infinite or \fIy\fP is zero,
18 a NaN value is returned.
20 The function returns the remainder of a division of \fIx\fP by \fIy\fP.