Letter | Meaning |
---|---|
E or e | Force exponential notation |
using System;
using System.Text;
using System.Globalization;
class Sample
{
public static void Main()
{
Console.WriteLine("{0:E5}", 11111111);
Console.WriteLine("{0:E1}", 11111110);
Console.WriteLine("{0:e5}", 11111111);
Console.WriteLine("{0:e1}", 11111110);
}
}
The output:
1.11111E+007
1.1E+007
1.11111e+007
1.1e+007
java2s.com | Contact Us | Privacy Policy |
Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
All other trademarks are property of their respective owners. |