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