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.#########"));
More Related Contents:
- Why is floating point arithmetic in C# imprecise?
- Double to string conversion without scientific notation
- When should I use double instead of decimal?
- Is floating-point math consistent in C#? Can it be?
- How To Represent 0.1 In Floating Point Arithmetic And Decimal
- C# Float expression: strange behavior when casting the result float to int
- Coercing floating-point to be deterministic in .NET?
- How to calculate float type precision and does it make sense?
- Formatting doubles for output in C#
- Casting a result to float in method returning float changes result
- How to convert a Decimal to a Double in C#?
- Is it safe to check floating point values for equality to 0?
- Extracting mantissa and exponent from double in c#
- Compare floats in Unity
- How does the .ToString() method work?
- Understanding floating point problems
- Set up dot instead of comma in numeric values
- How deterministic is floating point inaccuracy?
- C#: Convert Byte array into a float
- Convert from scientific notation string to float in C#
- How to make JSON.Net serializer to call ToString() when serializing a particular type?
- How do I automatically display all properties of a class and their values in a string? [duplicate]
- How do I convert an array of floats to a byte[] and back?
- Best way to parse float?
- How to convert Decimal to Double in C#?
- Why is the “f” required when declaring floats?
- How to create an extension method for ToString?
- How does ToString on an anonymous type work?
- C# Converting 20 digit precision double to string and back again
- What’s the best way to represent System.Decimal in Protocol Buffers?