public class MainClass
{
public static void main( String args[] )
{
System.out.printf( "%e\n", 12345678.9 );
System.out.printf( "%e\n", +12345678.9 );
System.out.printf( "%e\n", -12345678.9 );
System.out.printf( "%E\n", 12345678.9 );
System.out.printf( "%f\n", 12345678.9 );
System.out.printf( "%g\n", 12345678.9 );
System.out.printf( "%G\n", 12345678.9 );
}
}
1.234568e+07
1.234568e+07
-1.234568e+07
1.234568E+07
12345678.900000
1.23457e+07
1.23457E+07