]> pd.if.org Git - pdclib/blobdiff - functions/math/trunc.c
Re-import from Subversion.
[pdclib] / functions / math / trunc.c
index 4682245fc550af7300fdcc6e47189cf394c0356f..752afc02b1b61cbcc4deb13c6ac744c9990eebb8 100644 (file)
@@ -1,19 +1,17 @@
-// ----------------------------------------------------------------------------
-// $Id$
-// ----------------------------------------------------------------------------
-// Public Domain C Library - http://pdclib.sourceforge.net
-// This code is Public Domain. Use, modify, and redistribute at will.
-// ----------------------------------------------------------------------------
+/* ----------------------------------------------------------------------------
+ * $Id$
+ * ----------------------------------------------------------------------------
+ * Public Domain C Library - http://pdclib.sourceforge.net
+ * This code is Public Domain. Use, modify, and redistribute at will.
+ * --------------------------------------------------------------------------*/
 
-// ----------------------------------------------------------------------------
-// C++
-
-float trunc( float x ) { /* TODO */ };
-long double trunc( long double x ) { /* TODO */ };
+double trunc( double x ) { /* TODO */ };
 
-// ----------------------------------------------------------------------------
-// Standard C
+/* Therx code
+{
+    return (int) x;
+}
+*/
 
-double trunc( double x ) { /* TODO */ };
 float truncf( float x ) { /* TODO */ };
 long double truncl( long double x ) { /* TODO */ };