double d=12.2121; string str = d.ToString("F2"); double x = 29.982; Console.WriteLine(x.ToString(".00"));