I'm using an implementation of this answer to calculate the distance between two points for my GPS tracking software.
However I've read on numerous StackOverFlow that using double
is bad because of the inaccurate float representation of values. Therefore, I'm asking :
- Would using
BigDecimal
to calculate distances be more accurate ? - Would converting the result from BigDecimal back to
double
produce additional inaccuracies ? (to store or retrieve the value)