Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8b728e5c6e
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (17 sloc) 0.355 kb
/*-------------------------------------------------------------------------
*
* rint.c
* rint() implementation
*
* IDENTIFICATION
* src/port/rint.c
*
*-------------------------------------------------------------------------
*/
#include "c.h"
#include <math.h>
double
rint(double x)
{
return (x >= 0.0) ? floor(x + 0.5) : ceil(x - 0.5);
}
Jump to Line
Something went wrong with that request. Please try again.