using System; class MainClass { public static void Main() { double num = 64354.2345; Console.WriteLine("Default format: " + num); Console.WriteLine("Use scientific notation: " + "{0:#.###e+00}", num); } }
Default format: 64354.2345 Use scientific notation: 6.435e+04