AlexDenisov / iActiveRecord

ActiveRecord for iOS without CoreData, only SQLite
http://alexdenisov.github.com/iActiveRecord/
MIT License
354 stars 50 forks source link

Fix NSDecimalNumber precision loss on save #32

Closed mgod closed 11 years ago

mgod commented 11 years ago

this commit fixes #30

Save NSDecimalNumber as text in sqlite. NSDecimalNumber is designed to do math with currencies and forces base-10 math, which gets lost if it is saved as a real in sqlite. Now passes the decimal number test spec.

AlexDenisov commented 11 years ago

Thank you, @mgod.