how to number of decimal places in csharp code example Example: decimal places c# decimalVar.ToString("F");