diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2008-08-27 04:46:17 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2008-08-27 04:46:17 +0000 |
commit | dfab4520b63b75d7e310a33405716518e2a0b8f8 (patch) | |
tree | da697e1a0bd3c528bc0f2e47e08b4e9963b95220 /numpy/core | |
parent | 88c8abb00f49bdabd3b336f0bf0a8efaf6887acd (diff) | |
download | numpy-dfab4520b63b75d7e310a33405716518e2a0b8f8.tar.gz |
Simplify (commented out) trunc.
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/src/umathmodule.c.src | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umathmodule.c.src b/numpy/core/src/umathmodule.c.src index bef419bbd..77675c441 100644 --- a/numpy/core/src/umathmodule.c.src +++ b/numpy/core/src/umathmodule.c.src @@ -335,7 +335,7 @@ static double trunc(double x) { if (x < 0) { - return -floor(-x); + return ceil(x); } else { return floor(x); |