How to get floats value without including exponential notation

Try this

Console.WriteLine(dummy.ToString("F"));

You can also specify number of decimal places. For example F5, F3, etc.

Also, you can check custom format specifier

Console.WriteLine(dummy.ToString("0.#########"));

Leave a Comment