I have the following property:
@property (nonatomic, assign) NSDecimalNumber askingPrice;
I am trying to set the value from a textfield:
myManager.askingPrice = [self.askingPriceTextField.text doubleValue];
I get the following warning:
Assigning to 'NSDecimalNumber' from incompatible type 'double'
Also when I try getting the value like:
[NSDecimalNumber numberWithDouble:myManager.askingPrice];
I get error:
Sending 'NSDecimalNumber' to parameter of incompatible type 'double'
I have not worked with NSDecimalNumber before but have Google'd and seen that it is to be used when dealing with currency. Can someone point out a helper function I can use that would allow me to do what I am trying to do?
thanks