title: How to check if BigDecimal variable == 0 in java?
body: <p>I have the following code in Java;</p>
  
  <pre><code>BigDecimal price; // assigned elsewhere
  
  if (price.compareTo(new BigDecimal("0.00")) == 0) {
      return true;
  }
  </code></pre>
  
  <p>What is the best way to write the if condition?</p>