I have a feeling I’m asking a stupid question here. I’m having trouble retrieving float values from a database.
The field in the database (whether I set it to float or double, I’ve tried both)
Has the value
-3.218364
When reading the value using sqlite3_column_double it returns the value
194586
I’ve tried all sorts of combinations, storing it using float, double, NSNumber, CLLocationDegrees with no luck at all.
How stupid am I being here, I’ve used decimals in previous app with no problems. But I can’t figure out what I’ve done wrong here.
All help appreciated!
SQLite will store and retrieve the correct value as long as you bind the correct value and use the correct indexes.
e.g.
You should not be getting another value unless