Closed allenwei closed 11 years ago
if insert NSDecimalNumber directly into sqlite, it will have precision issue. NSDecimalNumber 3.33 will become 3.2999999999
so convert NSDecimalNumber it into NSString before insert will solve this problem
This is the question I asked on StackOverflow
http://stackoverflow.com/questions/19861794/rounding-issus-insert-nsdecimalnumber-into-sqlite
thanks @marcoarment
if insert NSDecimalNumber directly into sqlite, it will have precision issue. NSDecimalNumber 3.33 will become 3.2999999999
so convert NSDecimalNumber it into NSString before insert will solve this problem