I\'m putting a float in an Android based SQLite database, like so:
private static final String DATABASE_CREATE =
\"create table \" + DATABASE_TABLE + \"
Granted, it's a bad idea to compare float values for equality.
Howver, I see that SQLite uses 8-byte floating point values (which is like a DOUBLE
), so it's odd that 37.0 is considered equal to 37.3. Unless you modified for your example the values used in the actual code?
You could store your LATITUDE
as integers, in tenth of degree, applying the precision yourself, and converting the value on read/write...