title: Java BigDecimal remove decimal and trailing numbers
body: <p>I'm new to Java and trying to take a BigDecimal (for example 99999999.99) and convert it to a string but without the decimal place and trailing numbers. Also, I don't want commas in the number and rounding is not needed.</p>
  
  <p>I've tried:</p>
  
  <pre><code>Math.Truncate(number)
  </code></pre>
  
  <p>but BigDecimal is not supported.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks very much.</p>