Two things are strange with NSDecimalAdd(). First, when I search for examples, people seem to provide parameters by reference like NSDecimalAdd(&foobar, &foo, &bar, ....) and so on. The second strange thing is this const. Why's the parameter saying it wants a constant there? And why does this not apply for result?
NSCalculationError NSDecimalAdd (
NSDecimal *result,
const NSDecimal *leftOperand,
const NSDecimal *rightOperand,
NSRoundingMode roundingMode
);
Maybe someone can make the secret "public" here...