mdickinson / bigfloat

Python wrapper for MPFR, providing high-precision floating-point arithmetic
GNU Lesser General Public License v3.0
43 stars 11 forks source link

Feature: floor division #69

Closed mdickinson closed 9 years ago

mdickinson commented 9 years ago

This PR:

mdickinson commented 9 years ago

Error from Travis on Python 2.6 is:

======================================================================
ERROR: test_floordiv (bigfloat.test.test_bigfloat.BigFloatTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/mdickinson/bigfloat/bigfloat/test/test_bigfloat.py", line 361, in test_floordiv
    z = fractions.Fraction(x) // fractions.Fraction(y)
  File "/opt/python/2.6.9/lib/python2.6/fractions.py", line 99, in __new__
    numerator = operator.index(numerator)
TypeError: 'float' object cannot be interpreted as an index
mdickinson commented 9 years ago

Changelog needs updating.