csharp decimal vs double
Code Example - csharp decimal vs double
Use decimal for manmade concepts like currency
Use double/float for naturally-occuring values like temperature
csharp double value with 2 decimal places
inputValue = Math.Round(inputValue, 2);
format double to 2 decimal places in csharp
priceLbl.Text = price.ToString("0.##");