Using Swift3
and still getting the hang of things. I'm using the Decimal
type because it involves currency and I'm having a difficult time with getting the rounding to work. I've read through the NSDecimalNumberHandler
documentation and the rounding
function but don't quite understand how to get this to work. Essentially I just want all my Decimal
types in this class to round to the hundredths spot when the calculation functions I've built run.
Can someone give me quick example of how to do this? Thanks!