BUGS: Update from 2.90.8 snapshot.
[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));