title: Avoid scientific notation with BigDecimal
body: <p>I've a scenario where incoming data (in string form) can come in scientific notation and extra 0s after the decimal point. I'm trying to convert this String to a <code>BigDecimal</code> object and eliminate scientific notation and discard extra 0s after Decimal point. I'm using this call:</p>
  
  <pre><code>new BigDecimal(new BigDecimal(s).toPlainString()).stripTrailingZeros()
  </code></pre>
  
  <p>For these inputs, </p>
  
  <pre><code>"3438836.84782459"
  "10000000000.00000000"
  "1"
  "93650.99015461"
  "272333333.33000000"
  "0E-8"
  "0E-8"
  </code></pre>
  
  <p>When I do <code>System.out.println</code> on the resultant <code>BigDecimal</code> object, it outputs:</p>
  
  <pre><code>3438836.84782459
  1E+10
  1
  93650.99015461
  272333333.33
  0
  0
  </code></pre>
  
  <p>Any clues on how to eliminate scientific notation and extra zeros?</p>