I have this double
value:
var value = 52.30298270000003
and when I convert it to string
, it losses its precision:
var str = string.Format("{0} some text...", value);
Console.WriteLine(str); // output: 52.3029827
The number of precision on my double
value may be changed at run-time. How can I force the string.Format
method to use all precision?