dogear

enter for all results · esc to close

Floating Point Math

0.30000000000000004.comsite

“Your language isn't broken, it's doing floating point math. (…) This is why, more often than not, 0.1 + 0.2 != 0.3.”

from
Falsehood
added
2026-10-10
likes
0

similar

  1. Floating point number floating-point-gui.de

    This representation can encode numbers at very different magnitudes with a limited amount of digits by letting the radix point float instead of being fixed in place.

  2. Never Use Floats for Money husobee.github.io

    “This is precisely the problem we have when trying to represent 10^-1, or 0.1 in binary. There is not an exact binary representation of 0.1 or 0.01.”

  3. Floating-Point Numbers and Formal Proof github.com

    Introductory course on Coq real numbers and floating-point numbers from the Flocq library.

  4. Decimal Point Error in Etsy's Accounting System web.archive.org

    The importance of types in accounting software: missing the decimal point ends up with 100x over-charges.

  5. Falsehoods about Language garbled.benhamill.com

    Translating a software from English is not as straightforward as it seems to be.

  6. Falsehoods about Prices gist.github.com

    Covers currencies, amounts and localization.

Falsehood › Software Engineering: ““Your language isn't broken, it's doing floating point math. (…) This is why, more often than not, 0.1 + 0.2 != 0.3.””