タグ

ブックマーク / 0.30000000000000004.com (1)

  • Floating Point Math

    Floating Point Math 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 is not perfectly accurate. This is why, more often than not, 0.1 + 0.2 != 0.3. Why does this happen? It’s actually rather interesting. When you have a base-10 system (like ours), it can only express fr

    barlog
    barlog 2017/04/03
  • 1