两位float型的小数相加,不会变成两位小时的处理方法

from decimal import Decimal
a=134.5657768
t=Decimal(“134.5657768”).quantize(Decimal(“0.00”))
print(t)

原文地址:https://www.cnblogs.com/fh-fendou/p/11426022.html