1. Konrad Delong
  2. pypy

Commits

Amaury Forgeot d'Arc  committed 13f9e5d

Try to fix translation: there is no ll_math_round function,
so use the implementation in rarithmetic.py instead.

  • Participants
  • Parent commits 7d03f35
  • Branches fast-forward

Comments (0)

Files changed (1)

File pypy/rlib/rarithmetic.py

View file
  • Ignore whitespace
         return math.exp(x) - 1.
 
 def round_away(x):
-    "NOT_RPYTHON"
-    # round() from libm
+    # round() from libm, which is not available on all platforms!
     absx = abs(x)
     if absx - math.floor(absx) >= .5:
         r = math.ceil(absx)