title: javascript, parseInt behavior when passing in a float number
body: <p>I have the following two parseInt() and I am not quite sure why they gave me different results:</p>
  
  <p><code>alert(parseInt(0.00001))</code> shows 0;</p>
  
  <p><code>alert(parseInt(0.00000001))</code> shows 1</p>
  
  <p>My guess is that since parseInt needs string parameter, it treats <code>0.00001</code> as <code>""+0.00001</code> which is <code>"0.00001"</code>, therefore, the first alert will show <code>0</code> after parseInt. For the second statement, <code>""+0.00000001</code> will be <code>"1e-8"</code>, whose parseInt will be <code>1</code>. Am I correct?</p>
  
  <p>Thanks</p>