-5

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

SantiBailors
  • 1,596
  • 3
  • 21
  • 44

1 Answers1

0

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);
urag
  • 1,228
  • 9
  • 28