on-internet
← Community

IEEE 754 a bug?

Stack Overflow ·

When working with floating-point arithmetic in almost any programming language, we encounter well-known precision issues, such as: 0.1 + 0.2 = 0.30000000000000004 I am trying to understand how computer science classifies this behavior compared to historical time-related bugs like Y2K or the Year 2038 problem (Y2038). While Y2038 is widely considered a critical bug caused by storing time in a signed 32-bit integer, the 0.1 + 0.2 behavior stems from the IEEE 754 standard's inability to represent certain base-10 fractions accurately in base-2 (binary). From a software engineering and architectura

Comments

Sign in or sign up to comment and upvote.

No comments yet.