title: Scala BigDecimal division
body: <p>What use is the division operator on a scala <code>BigDecimal</code>? </p>
  
  <pre><code>val d1 = BigDecimal(2)
  val d2 = BigDecimal(3)
  val div = d1 / d2 //throws ArithmeticException: non-terminating decimal expansion
  </code></pre>
  
  <p>In order to get this to work, you need to define a <code>DECIMAL128</code> context on the decimals. Unfortunately the only way I can see of doing this is:</p>
  
  <pre><code>val div = new BigDecimal(d1.bigDecimal.divide(d2.bigDecimal, MathContext.DECIMAL128)) //OK!
  </code></pre>
  
  <p>But this is just a mess! Am I missing something?</p>