[issue20536] statistics._decimal_to_ratio() produces non-integer ratio

Wolfgang Maier report at bugs.python.org
Sat Feb 8 23:51:31 CET 2014


Wolfgang Maier added the comment:

Steven,
I think

if exp >= 0:
    return int(x), 1

would have been a better patch, but yours is certainly working, just slower I guess.

----------
nosy: +wolma

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20536>
_______________________________________


More information about the Python-bugs-list mailing list