title: How to express numbers in scientific notation in java?
body: <p>I'm writing a program that deals with planets' mass and diameter; These quantities are expressed in scientific notation. My question is NOT, mind you, NOT how does one print large numbers the right way (That's using printf(), duh), its how I would... "type" these numbers, I guess you could say. For example, the mass of mercury is expressed: </p>
  
  <pre><code>3.30 x 10ˆ23
  </code></pre>
  
  <p>And in my array of planet masses, an element would look: </p>
  
  <pre><code>33.0 * Math.pow(10, 23)
  </code></pre>
  
  <p>However, I don't quite think this is the right way - it looks like it would throw an exception... So how could I express large numbers like that from a programmer's perspective? Thanks!</p>