There is no difference between a decimal with value 12.1 or value 12.10.
If you want to display the decimal with 2 decimal place, specify a format string in ToString:
myDouble.ToString("0.00");
More Related Contents:
- Monitor all print queue job
- What are regular expression Balancing Groups?
- WPF CreateBitmapSourceFromHBitmap() memory leak
- Format XML string to print friendly XML string
- Why Firefox requires GeckoDriver?
- send HTTP POST request in .net
- Windows Phone 8.1 Universal App terminates on navigating back from second page?
- How to deserialize a JSON property that can be two different data types using Json.NET
- Inno Setup for Windows service?
- Leave only two decimal places after the dot
- Generics – where T is a number? [duplicate]
- Unhandled exceptions in BackgroundWorker
- What is the difference between Convert.ToInt32 and (int)?
- Calculate the display width of a string in C#?
- How to keep console window open
- Why would I bother to use Task.ConfigureAwait(continueOnCapturedContext: false);
- How do you prevent a windows from being moved?
- How do I set a conditional compile variable?
- ILMerge Best Practices
- OpenXML SDK having borders for cell
- Copy files from Resources/StreamingAssets to Application.persistentDataPath upon installation
- List All Partitions On Disk [closed]
- The current .NET SDK does not support targeting .NET Core 2.2. (SDK 2.2.202)
- How to ignore ssl_client_socket_impl.cc(1061)] handshake failed in selenium c# ChromeDriver
- Get list of local computer usernames in Windows
- C# – How to change PNG quality or color depth
- How to find path to .cs file by its type in C#
- Run a Windows Service as a console app
- When is it necessary/appropriate to use InAttribute and OutAttribute for COM Interop
- How to resolve .net core build error NETDSDK1061 and warning MSB3277