Reputation: 463
I created a table with fields map_latitude
and map_longitude
in Sqlite Data Base with data type REAL.
But when I retrieved data from the database in Toast Message I see it with only zero decimal point.
for example:
15.31894
store as 15.0
how can I solve this?
Upvotes: 8
Views: 8101
Reputation: 75788
You should use Data-Type REAL
.
The value is a floating point value, stored as an 8-byte IEEE floating point number.
Safe Approach is -> Using TEXT
Upvotes: 8