views:

325

answers:

1

Hi all,

I read in a recent post that the Decimal data type is the best to use in Core Data to model currency since it doesn't have floating point issues.

I've searched the apple docs and google and can't seem to find any documentation on using the Decimal type.

Does anyone have a link to documentation on it?

Thanks!

+6  A: 

Use "Decimal" as the attribute type in your data model and NSDecimalNumber as the object type in your code.

gerry3
This question might also be helpful to him: http://stackoverflow.com/questions/421463/should-i-use-nsdecimalnumber-to-deal-with-money
Brad Larson