Back to index
Go to the source code of this file.
Definition at line 25 of file s_rint.c.
double two52 = copysign (0x1.0p52, x);
r = x + two52;
r = r - two52;
/* rint(-0.1) == -0, and in general we'll always have the same sign
as our input. */
return copysign (r, x);