title: NSDecimalNumber usage for precision with currency in Swift
body: <p>I've read a lot that <code>NSDecimalNumber</code> is the best format to use when using currency. </p>
  
  <p>However, I'm still getting floating point issues. </p>
  
  <p>For example. </p>
  
  <pre><code>let a: NSDecimalNumber = 0.07 //0.07000000000000003
  let b: NSDecimalNumber = 7.dividing(by: 100) //0.06999999999999999
  </code></pre>
  
  <p>I know I could use <code>Decimal</code> and b would be what I'm expecting:</p>
  
  <pre><code>let b: Decimal = 7 / 100 //0.07
  </code></pre>
  
  <p>I'm using Core Data in my app. So I'm stuck with <code>NSDecimalNumber</code>. Unless I want convert a lot of <code>NSDecimalNumbers</code> to <code>Decimals</code>. </p>
  
  <p>Can someone help me get 0.07? </p>