2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libf2c / libF77 / d_nint.c
blob8be42758644e9c772a215e5a91569313d0b8c459
1 #include "f2c.h"
3 #undef abs
4 #include <math.h>
5 double
6 d_nint (doublereal * x)
8 return ((*x) >= 0 ? floor (*x + .5) : -floor (.5 - *x));