title: Extract int part of a BigDecimal?
body: <p>In Java, I'm working with the <code>BigDecimal</code> class and part of my code requires me to extract the int part from it. <code>BigDecimal</code> does not appear to have any built in methods to help me get the number before the decimal point of a <code>BigDecimal</code>.</p>
  
  <p>For example:</p>
  
  <pre><code>BigDecimal bd = new BigDecimal("23452.4523434");
  </code></pre>
  
  <p>I want to extract the <code>23452</code> from the number represented above. What's the best way to do it?</p>