home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
f2c-93.04.28-src.tgz
/
tar.out
/
fsf
/
f2c
/
libF77
/
h_dnnt.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-28
|
218b
|
15 lines
#include "f2c.h"
#ifdef KR_headers
double floor();
shortint h_dnnt(x) doublereal *x;
#else
#undef abs
#include "math.h"
shortint h_dnnt(doublereal *x)
#endif
{
return( (*x)>=0 ?
floor(*x + .5) : -floor(.5 - *x) );
}