>>> str = 10.20*100 >>> str 1019.9999999999999 >>> str = int(str) >>> str 1019 >>> import math >>> math.floor(10.20*100)/100 10.19
>>> str = 10.30*100 >>> str 1030.0 >>> str = int(str) >>> str 1030 >>> math.floor(10.30*100)/100 10.3
>>> str = 10.20*100 >>> round(str) 1020