Hamlib/lib/trunc.c

14 wiersze
148 B
C

#include <config.h>
#ifndef HAVE_TRUNC
#include <math.h>
double
trunc (double x)
{
return round(x); /* FIXME !! */
}
#endif /* !HAVE_TRUNC */