python 警惕 IEEE 754标准

双精度浮点数格式,即IEEE 754标准

>>> 0.1+0.2
0.30000000000000004
>>> (0.1+0.2)==0.3
False
>>> 

猜你喜欢

转载自www.cnblogs.com/sea-stream/p/10741022.html
今日推荐