Pristine Ack-5.5
[Ack-5.5.git] / lang / fortran / lib / libF77 / i_nint.c
1 #include "f2c.h"
2
3 integer i_nint(x)
4 real *x;
5 {
6 double floor();
7
8 return( (*x)>=0 ?
9         floor(*x + .5) : -floor(.5 - *x) );
10 }