[pypy-svn] r76097 - pypy/branch/fast-forward/pypy/module/math
benjamin at codespeak.net
benjamin at codespeak.net
Sat Jul 10 19:22:17 CEST 2010
Author: benjamin
Date: Sat Jul 10 19:22:15 2010
New Revision: 76097
Modified:
pypy/branch/fast-forward/pypy/module/math/interp_math.py
Log:
use round replacement
Modified: pypy/branch/fast-forward/pypy/module/math/interp_math.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/math/interp_math.py (original)
+++ pypy/branch/fast-forward/pypy/module/math/interp_math.py Sat Jul 10 19:22:15 2010
@@ -522,7 +522,7 @@
def _sinpi(x):
y = math.fmod(abs(x), 2.)
- n = int(round(2. * y))
+ n = int(rarithmetic.round_away(2. * y))
if n == 0:
r = math.sin(math.pi * y)
elif n == 1:
More information about the Pypy-commit
mailing list