ExclusivePrice, quantity are both NSDecimalNumbers.
NSDecimalNumber *price = [exclusivePrice decimalNumberByMultiplyingBy:quantity];
NSLog(@\"%@ * %@ = %@\"
I found the answer: According to How to use NSDecimalNumber? I can't easily convert between NSNumber and NSDecimalNumber. To convert from the one to the other I have to do :
NSDecimalNumber *n2 = [NSDecimalNumber decimalNumberWithDecimal:
[[formatter numberFromString:@"2"] decimalValue]];
It would have been nice if the NSNumberFormatter had a decimalNumberFromString: method.