Java floating-point literals scientific notation Question 1

Question

What is the output of the following code?

public class Main {
  public static void main(String[] args) {
    System.out.println(5.2534e+1); 
    System.out.println(0.52534e+2); 
    System.out.println(525.34e-1);
    System.out.println(5.2534e+0);
  }
}


52.534
52.534
52.534
5.2534



PreviousNext

Related