title: Convert string to BigDecimal in java
body: <p>I am reading a currency from <code>XML</code> into Java.</p>
  <pre><code>String currency = &quot;135.69&quot;;
  </code></pre>
  <p>When I convert this to <code>BigDecimal</code> I get:</p>
  <pre><code> System.out.println(new BigDecimal(135.69));
  </code></pre>
  <p>Output:</p>
  <pre><code>135.68999999999999772626324556767940521240234375.
  </code></pre>
  <p>Why is it that it outputs this many numbers? How can I avoid this? All I want is for it to output 135.69.</p>