I have piece of code similar to the following:
public class Program
{
public static void Main()
{
double value = 1035.1421666793442;
string converted = value.ToString("F15", System.Globalization.CultureInfo.InvariantCulture);
converted.Dump();
}
}
I want to convert this double to a string with all decimals. But the converted string always looks like this: 1035.142166679340000. So the value was rounded before formatting to "F15".
You can reproduce this with the following Fiddle: https://dotnetfiddle.net/ynlsYW