Python: round float while logging dandelion 9 years ago # python >>> x = 3.1415926 >>> format(x, '.2f') '3.14'