Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
https://docs.python.org/3/whatsnew/3.0.html > The round() function rounding strategy and return type have changed. Exact > halfway cases are now rounded to the nearest even result instead of away from > zero. (For example, round(2.5) now returns 2 rather than 3.) round(x[, n]) > now delegates to x.__round__([n]) instead of always returning a float. It > generally returns an integer when called with a single argument and a value > of the same type as x when called with two arguments. ---------- nosy: +xtreak _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36082> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com