Use trunc module from gnulib instead of our home-grown solution.
[pspp-builds.git] / src / language / expressions / helpers.c
index a0f0c0fc735f394d5c17f4cc74347f2beb44e939..a28f1a666ef2180ea17730c024dbfe19f4d1980e 100644 (file)
@@ -131,15 +131,6 @@ enum date_unit
     DATE_SECONDS
   };
 
-#ifndef HAVE_TRUNC
-/* Return X rounded toward zero. */
-static double
-trunc (double x)
-{
-  return x >= 0.0 ? floor (x) : ceil (x);
-}
-#endif /* !HAVE_TRUNC */
-
 /* Stores in *UNIT the unit whose name is NAME.
    Return success. */
 static enum date_unit