Shlomo Anglister added the comment: >>> def my_round(n,i): ... t = n * (10**i) ... s = round(t) ... r = s / (10**i) ... return r ... >>> print my_round(s,2) 1.41 __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1565> __________________________________