c# string to double with 2 decimals code example
Example 1: convert string to double c#
Console.WriteLine(Convert.ToDouble("104.1169"));
Example 2: format double to 2 decimal places in c#
priceLbl.Text = price.ToString("0.##");
Console.WriteLine(Convert.ToDouble("104.1169"));
priceLbl.Text = price.ToString("0.##");