News for hackers. Stuff that matters.
Re:Weird compiler bug – Same code, different results by CodesInChaos on Saturday January 30, 2021 @05:07AM (#25967827)
Last I checked C# allowed the compiler to perform the computation with higher precision than what the code requires an then narrow down the the expected precision whenever it wants (you can trigger a narrowing by explicitly casting from a floating point type to itself). Which makes writing correct floating point code practically impossible.

There are no comments on this comment yet.