fork(1) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.math.*;
  4.  
  5. class Main
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. BigDecimal d = BigDecimal.valueOf(12334535345456700.12345634534534578901);
  10. String output = d.toString(); // or whatever formatting needs to be done
  11. System.out.println(output);
  12.  
  13. double d2 = 12334535345456700.12345634534534578901;
  14. System.out.println("" + d2);
  15. }
  16. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
1.23345353454567E+16
1.23345353454567E16