I have a fairly small double and a fairly large double. When I divide the large one by the small one and display it with Console.WriteLine, it always shows exponential notation. Can I display the non exponential notation form?
I have a fairly small double and a fairly large double. When I divide
Share
When you do
Console.WriteLineit will use a default format for the given type. The same thing you’d get if you usedToString()explicitly. Have you tried specifying the format, as innumber.ToString("D")?