I then use this value and insert it in a Local SQLite DB using the following commandWhat does your database schema look like? Specifically, what is the type of the price column? In general you don’t want to use REAL for currency values because the rules of floating point arithmetic can result in significant rounding errors. In situations like this it is better to store the number of cents in an INTEGER column (that is, fixed point arithmetic). Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic:
Programming Languages
SubTopic:
General
Tags: