I work on an app with currency calculations based on some old Objective-C code that represents prices as NSDecimalNumber.
Recently Swift 3 changed to import NSNumber to a native number type such as Int or Double. It appears that NSDecimalNumber is now forcibly imported as Double, loosing all precision on our financial calculations. I have been unable to find a way to force swift into importing the number as a Decimal or NSDecimalNumber instead of a Double.
Is there any way to avoid having all my financial calculations becoming messed up due to rounding errors when working with both Objective-C and Swift or do I need to convert all my model objects from Objective-C to Swift in order to do so?