4 ms·
The article points out an interesting quirk in C#/.Net: the algorithm the C# compiler uses to convert numeric literals like "3.14159" to 64-bit IEEE binary may
by wwalker3 17y ago
The article points out an interesting quirk in C#/.Net: the algorithm the C# compiler uses to convert numeric literals like "3.14159" to 64-bit IEEE binary may be different from the algorithm used by .Net framework APIs to do the same conversion. So if you mix the two types of conversion in your code, you may get unexpected results.