[Python-Dev] Return type of round, floor, and ceil in 2.6

skip at pobox.com skip at pobox.com
Fri Jan 4 17:58:33 CET 2008


    Guido> Looks like in Python 2.6, round(0.5) right now returns 0.0,
    Guido> whereas in 2.5, it returns 1.0.

    Guido> I think it should return 1.0, for best compatibility with Python
    Guido> 2.5.

And for best compatibility with everything else! <0.5 wink>

Skip


More information about the Python-Dev mailing list