I am trying to read and print the value of double type using scanner class, but I am getting the output
My output 2.3534534534523453E11
Expected output 235345345345.234534
I am trying to read and print the value of double type using scanner class, but I am getting the output
My output 2.3534534534523453E11
Expected output 235345345345.234534
It is the same number what you seeing is called sintific notation you can use some thing like this to print it in the normal way
System.out.printf("dexp: %f\n", yournumbergoeshere);