how to get a double to take 2 decimal places in c# code example Example: format double to 2 decimal places in c# priceLbl.Text = price.ToString("0.##");