Example:
Database latitude value: 33.3360705
location from android device latitude value: 33.33607
These are technically NOT the same, BUT the difference is so little that I would like to consider them the same.
How would I do that? 🙂
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just use
ROUNDin MySQL when getting the value from the database. The following will round to 5 decimal places (which matches your android device value):