[Numpy-svn] r5712 - trunk/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Tue Aug 26 23:46:24 CDT 2008


Author: charris
Date: 2008-08-26 23:46:17 -0500 (Tue, 26 Aug 2008)
New Revision: 5712

Modified:
   trunk/numpy/core/src/umathmodule.c.src
Log:
Simplify (commented out) trunc.

Modified: trunk/numpy/core/src/umathmodule.c.src
===================================================================
--- trunk/numpy/core/src/umathmodule.c.src	2008-08-27 03:17:51 UTC (rev 5711)
+++ trunk/numpy/core/src/umathmodule.c.src	2008-08-27 04:46:17 UTC (rev 5712)
@@ -335,7 +335,7 @@
 trunc(double x)
 {
     if (x < 0) {
-    	return -floor(-x);
+    	return ceil(x);
     }
     else {
         return floor(x);



More information about the Numpy-svn mailing list