© 2026 Hashnode
One of the most surprising things for beginners in C#, and even experienced developers in many programming languages, is this: Console.WriteLine(0.1 + 0.2 == 0.3); // Outputs: False Wait, what? Isn’t 0.1 + 0.2 supposed to be exactly 0.3? Let’s break...

"If ASCII helps computers talk, IEEE 754 helps them think." If you've ever tried to add 0.1 + 0.2 in JavaScript and got 0.30000000000000004, you’ve seen IEEE 754 in action — whether you knew it or not. But what is this mysterious number standard, an...

When working with programming languages, you may have encountered puzzling results in floating-point arithmetic. A classic example is the seemingly simple addition: console.log(9.21 + 1.66); // Output: 10.870000000000001 At first glance, this might ...

$$0.1 + 0.2 = 0.30000000000000004$$Hear me out. Try doing 0.1 + 0.2 in your browser console and prepare for the unexpected. Why is the result 0.30000000000000004? Have I been deceived my entire life? Should I even trust my math teachers anymore? This...
