title: Why BigDecimal("5.50") not equals to BigDecimal("5.5") and how to work around this issue?
body: <p>Actually, I've found possible solution </p>
  
  <pre><code>//returns true
  new BigDecimal("5.50").doubleValue() == new BigDecimal("5.5").doubleValue()
  </code></pre>
  
  <p>Of course, it can be improved with something like <code>Math.abs (v1 - v2) &lt; EPS</code> to make the comparison more robust, but the question is whether this technique acceptable or is there a better solution?</p>
  
  <p>If someone knows why java designers decided to implement BigDecimal's equals in that way, it would be interesting to read.</p>