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...

Markdown supported · ⌘↵ to post
No responses yet.