using System; class MainClass { public static void Main() { double num = 64354.2345; Console.WriteLine("Default format: " + num); Console.WriteLine("Value with two decimal places: " + "{0:#.##}", num); } }
Default format: 64354.2345 Value with two decimal places: 64354.23