title: Trying to limit number of decimal places for BigDecimal division Java
body: <p>I am new to the Java world and am trying to learn how to use BigDecimal. What I am trying to do now is limit the number of decimal places in a division problem. My line of code is: </p>
  
  <pre><code>quotient=one.divide(x);
  </code></pre>
  
  <p>Where quotient, one and x are all of type BigDecimal. I cannot figure out, however, how to limit the number of decimal places to print out, saying that x is some large number, and one is equal to 1. All help is appreciated, thanks!</p>