I\'m building a app that needs to perform calculations on money.
I wonder how to properly use NSDecimalNumber, especially how to initialize it from integers, floats
One small addition: if you init NSDecimalNumber from a string, it might be useful to set a locale also. For example, if your string contains comma as a decimal separator.
NSDecimalNumber
decimal separator
self.order.amount = [NSDecimalNumber decimalNumberWithString:self.amountText locale:[NSLocale currentLocale]];