fork(1) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.math.*;
  4. import java.text.*;
  5.  
  6. class Main
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
  10. DecimalFormat df = new DecimalFormat("0.0000E0");
  11.  
  12. Double valorDouble = 12345.0;
  13. System.out.println(df.format(valorDouble));
  14. }
  15. }
Success #stdin #stdout 0.12s 321088KB
stdin
Standard input is empty
stdout
1.2345E4