1998-02-01 09:37:08 +08:00
|
|
|
#include "f2c.h"
|
|
|
|
|
|
|
|
#undef abs
|
|
|
|
#include <math.h>
|
2002-06-01 20:38:32 +08:00
|
|
|
double
|
|
|
|
d_nint (doublereal * x)
|
1998-02-01 09:37:08 +08:00
|
|
|
{
|
2002-06-01 20:38:32 +08:00
|
|
|
return ((*x) >= 0 ? floor (*x + .5) : -floor (.5 - *x));
|
1998-02-01 09:37:08 +08:00
|
|
|
}
|