I have a price field which a NSDecimalNumber
. I want to create a condition if the value is.
I tried the following:
- (NSString *)numberToPriceString:(NSDecimalNumber *)price{
NSDecimalNumber *zero = [[NSDecimalNumber alloc] initWithString:@"0"];
if (price == zero){
}else{
}
However the zero value shows a debug value of @"0"
.
How do I create a zero value equal to something I can catch the condition with?