fork download
  1. class Main {
  2. public static void main(String... args) {
  3. double small = 1E-120;
  4. double medium = 0.3;
  5. double huge = 1E+120;
  6. System.out.println(String.format("%f\n%f\n%f", small, medium, huge));
  7. }
  8. }
Success #stdin #stdout 0.03s 245632KB
stdin
Standard input is empty
stdout
0.000000
0.300000
1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000