First time using NSDecimalNumber, so I've wondered do I really need to create so many objects? In my method I want to calculate monthly costs out of daily costs. The monthly costs are stored in self.sumPerMonth
and the parameter costs
is the daily cost value. So I want to add to my monthly costs 30 * costs
. Is this the easiest way to do that?
[self.sumPerMonth decimalNumberByAdding:[costs decimalNumberByMultiplyingBy:[NSDecimalNumber decimalNumberWithString:@"30"]]];