title: float and double datatype is good to store latitude and longitude?
body: <p>I am storing latitude and longitude at the server side (JAVA Platform). </p>
  
  <p>To store those values, I am using float and double datatype at the server side. I came to know that float and double are not a recommended primitive datatypes (which is not recommended to use currencies in professional way), because float and double having <strong>rounding precision problem</strong>.</p>
  
  <p>In my case, I am just comparing the stored coordinates (latitude and longitude) at the server side.</p>
  
  <p><strong>Question 1:</strong></p>
  
  <p>Comparing the coordinates with the datatypes (float or double) will make any problem in future?</p>
  
  <p><strong>Question 2:</strong></p>
  
  <p>Using big decimal is good? or Going with float or double is safer? </p>