title: How do you truncate extra decimals from BigDecimal
body: <p>I'm building a service that uses a currency converter and forwards the BigDecimal amount to another service. Sometimes, the conversion rate makes it so that the converted amount has close to 34 decimal places, which the downstream service does not accept. </p>
  
  <p>Is there a way to simply truncate (not round) the BigDecimal.  So, for example, if the converted amount is 1.23456789 I want neither 1.24, nor 1.3, nor 1.20, or anything of that sort.  I simply want to get rid of the decimals that appear after 4.  So what I want is 1.23.</p>
  
  <p>I saw a lot of questions on SO related to this, but they all rounded the BigDecimal in some way.</p>
  
  <p>Thanks!</p>