• Post Reply Bookmark Topic Watch Topic
  • New Topic

Where can I find documentation of abbreviations such as 1E6  RSS feed

 
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where can I find the java-documentation of number-abbreviations such as 1E6, which stands for 100.000 ?

Or 2E8 or the like.
 
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find all the details on the syntax of Java in The Java Language Specification. For this specific feature, look in section 3.10.2: Floating-Point Literals.

By the way, 1E6 means 1 times 10 to the power 6, which is 1.000.000, not 100.000. 2E8 means 2 times 10 to the power 8, or 200.000.000 (two hundred million). It's simple: 1E6 = 1 followed by 6 zeroes; 2E8 = 2 followed by 8 zeroes.
 
Marshal
Posts: 56610
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1e6 is such a well-known abbreviation for 1 × 10^6 that it is probably not recorded in many places.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!