title: Rounding Decimal
body: <p>In <code>NSDecimalNumber</code> there's a method to round the number, I.E.</p>
  
  <pre><code>let handler = NSDecimalNumberHandler(roundingMode: .plain, scale: 2, raiseOnExactness: false, raiseOnOverflow: false, raiseOnUnderflow: false, raiseOnDivideByZero: false)
  
  let example: NSDecimalNumber = 1.345
  let rounded: NSDecimalNumber = example.rounding(accordingToBehavior: handler)
  </code></pre>
  
  <p>Now I've switched to <code>Decimal</code> and it doesn't seem to have the method to round the number like <code>NSDecimalNumber</code> has. Should I cast it to <code>NSDecimalNumber</code> and cast it back to <code>Decimal</code> just to round things up or is there a better and more elegant way of rounding a <code>Decimal</code>?</p>
  
  <p>EDIT: made a better example</p>