How about this, (taking advantange of the round function)? >>> def rounded(n): return int(round(n+4, -1)) >>> rounded(10) 10 >>> rounded(11) 20 >>> rounded(19) 20 >>> rounded(111) 120 >>> Mike Callahan