title: How to convert exponential number String to an integer number String
body: <p>What is the best/fastest way to convert an exponential integer number of String type (e.g. <code>"2.4490677E7"</code>) to an integer number String (e.g. <code>"24490677"</code>) in Java?</p>
  
  <p><strong>Edit:</strong> The input is known to always be an integer.</p>
  
  <p>My current proposal is as follows (using <code>org.apache.commons.lang.math.NumberUtils</code> from Apache Commons):</p>
  
  <pre><code>String input = "2.4490677E7";
  String res = null;
  Double d = NumberUtils.toDouble(input);
  if (d != 0.0d) {
     // we have a double number here
     res = String.format("%d", d.intValue());
  }
  </code></pre>