2 ms·
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 precisi
by CodesInChaos 6y ago
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.