I am not sure if that would make any trouble. Normally, lets say, I sum up a few values. I would do it like this:
val1 = val1 + val2;
val1 = val1 + val3;
val1 = val1 + val4;
and so on... Could I do something similar with NSDecimal, or should I not provide the same NSDecimal "object" twice in the parameters? (btw, how's that called? not a "object", right?)
Apple says:
NSDecimalAdd
Adds two decimal values.
NSCalculationError NSDecimalAdd (
NSDecimal *result,
const NSDecimal *leftOperand,
const NSDecimal *rightOperand,
NSRoundingMode roundingMode
);
Discussion Adds leftOperand to rightOperand and stores the sum in result.