summaryrefslogtreecommitdiff
path: root/lib/truncf.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-10-05 01:06:37 +0200
committerBruno Haible <bruno@clisp.org>2007-10-05 01:06:37 +0200
commit152e99575c43cc17bbb11ecd32d38418c1d68dc6 (patch)
tree8ac7d899429a79f6b5f192a520034881a4cc844b /lib/truncf.c
parenta0a83999826796d8f758b05dac2fa3da366ac8ae (diff)
downloadgnulib-152e99575c43cc17bbb11ecd32d38418c1d68dc6.tar.gz
New module 'truncf'.
Diffstat (limited to 'lib/truncf.c')
-rw-r--r--lib/truncf.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/truncf.c b/lib/truncf.c
new file mode 100644
index 0000000000..423c260c82
--- /dev/null
+++ b/lib/truncf.c
@@ -0,0 +1,21 @@
+/* Round towards zero.
+ Copyright (C) 2007 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
+
+#define USE_FLOAT
+#include "trunc.c"