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