Tag Archives: 1985

0.1 + 0.2 = 0.30000000000000004

看到「http://0.30000000000000004.com/」這個網站對經典的 0.1 + 0.2 問題整理了各語言的結果。這個網址名稱也很機車啊 XD 開頭的說明講述 IEEE 754 二進制表示法的問題: Your language isn't broken, it's doing floating point math. Computers can only natively store integers, so they need some way of representing decimal numbers. This representation comes with some degree … Continue reading

Posted in Computer, Murmuring, Programming | Tagged , , , , , , , | Leave a comment