The documentation bothers me. They speak:
void NSDecimalCompact (
NSDecimal *number
);
Discussion Formats the number so that calculations using this will be considered as little memory as possible. All NSDecimal ... arithmetic functions expect compact NSDecimal arguments.
The last part is important:
All NSDecimal ... arithmetic functions expect compact NSDecimal arguments.
So this means that I have to execute NSDecimalCompact () for each NSDecimal, every time I provide it as a parameter of one of the NSDecimal ... arithmetic functions? Or would I do this only once when creating an NSDecimal?
HelloMoon
source
share