• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Max value of double?

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my code,

double a=12345678;
double b=0.11;
System.out.println("tot = "+(a+b));

result is...
run-main:
tot = 1.234567811E7


why this 'E'???
thanks in advace
 
Marshal
Posts: 64651
225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
E is standard shorthand for multiplied-by-ten-to-the-power-of. I think it is short for exponent. The API explains how the format is chosen.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!