Fetch Requests and NSDecimalNumbers
Fetch Requests and NSDecimalNumbers
- Subject: Fetch Requests and NSDecimalNumbers
- From: Steve Cronin <email@hidden>
- Date: Thu, 23 Feb 2006 13:05:48 -0600
Folks;
I have utilized NSDecimalNumbers throughout my Core Data model as I
am under the impression that this is the best basis for tracking
monetary values. I have further utilized the "...decimalNumberBy"
mechanisms for all internal arithmetic.
Now I need to formulate fetch requests and am a bit bamboozled by use
of predicate comparison operators and the NSDecimalNumber's compare
method...
If totalCost is an attribute of type NSDecimalNumber, how do I best,
and most efficiently, express a predicate that implements:
totalCost > $USER_SUPPLIED_VARIABLE
Is there some documentation I'm not seeing.
Thanks!
Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden