I am carrying out a number of calculations using NSDecimal and am creating each NSDecimal struct using the following technique:
[[NSNumber numberWithFloat:kFloatConstant] decimalValue]
I am using NSDecimal to avoid using autoreleased NSDecimalNumber objects (if the NSDecimalNumber approach to accurate calculations is used). However it seems that the NSNumber creation mechanism also returns an autoreleased NSNumber from which the decimal value is extracted.
Is there a way to create an NSDecimal without using NSNumber and creating autoreleased objects?