fix rounding error that occured when using a negative latitude or longitude due to demical precision differences