Why 0.1 + 0.2 = 0.30000000000000004 in python ?

Why 0.1 + 0.2 = 0.30000000000000004 in python?python python中: >>> 10.0 / 3 3.3333333333333335編程 這是爲了不 0.3333… 一直循環下去,Python 武斷終結了循環,可是,並無按照「四捨五入」的原則終止。app 還會有更奇葩的: >>> 0.1 + 0.2 0.30000000000000004 >>
相關文章
相關標籤/搜索