DEV Community

Discussion on: When Math Fails You

Collapse
codemouse92 profile image
Jason C. McDonald

It actually is possible to represent 0.1 exactly in binary, but not in IEEE Floating Point. Check out unum by John Gustafson.

Collapse
jdsteinhauser profile image
Jason Steinhauser Author

You are absolutely correct; there are multiple varieties of floating points available out there. I should have specified IEEE-754 definitions since those are the ubiquitous (but not sole) representations of floating points in modern computing. Thanks for the clarification!