fork 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("0E0");
  11.  
  12. Double valorDouble = 10000000000.0;
  13. System.out.println(df.format(valorDouble)); // 1E10
  14. }
  15. }
Success #stdin #stdout 0.15s 321024KB
stdin
Standard input is empty
stdout
1E10