Format Decimal with 000000E0 in Java
Description
The following code shows how to format Decimal with 000000E0.
Example
/*from w w w . j av a 2 s .c om*/
import java.text.DecimalFormat;
public class Main {
public static void main(String args[]) {
System.out.println(new DecimalFormat("000000E0").format(123123));
}
}
The code above generates the following result.