Specifier | Meaning |
---|---|
E0, e0, E,+0, e+0, E-0, e-0 | Exponent notation |
using System;
using System.Text;
using System.Globalization;
class Sample
{
public static void Main()
{
Console.WriteLine("{0:0E0}", 1234);
Console.WriteLine("{0:0E+0}", 1234);
Console.WriteLine("{0:0.00E00}", 1234);
Console.WriteLine("{0:0.00e00}", 1234);
}
}
The output:
1E3
1E+3
1.23E03
1.23e03
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. |