/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public static void Main() { double num = 64354.2345; Console.WriteLine("Default format: " + num); Console.WriteLine("Use scientific notation: " + "{0:#.###e+00}", num); }