Steven D'Aprano <st...@pearwood.info> added the comment: Mark suggested the following strategy for Decimal.from_float: "always use the largest exponent possible".
Just for the avoidance of all doubt, do you mean the largest exponent with the number normalised to one digit to the right of the decimal place? Because 1e1 = 0.1e2 = 0.01e3 = ... and there is no "largest exponent possible" if you allow unnormalised numbers. Seems obvious to me, but maybe I'm missing something. _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4796> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com