title: Why does Java BigDecimal return 1E+1?
body: <p>Why does this code sometimes return 1E+1 whilst for other inputs (e.g. 17) the output is not printed in scientific notation?</p>
  
  <pre><code>BigDecimal bigDecimal = BigDecimal.valueOf(doubleValue).multiply(BigDecimal.valueOf(100d)).stripTrailingZeros();
  System.out.println("value: " + bigDecimal);
  </code></pre>