Closed gamblor21 closed 2 years ago
@dhalbert lgtm. seems like idea is _degrees
and _minutes
provide integer values to avoid potential precision issue when converting to single latitude
float value? could maybe have something like a named tuple instead of two separate variables? but probably not worth the extra effort.
@dhalbert lgtm. seems like idea is
_degrees
and_minutes
provide integer values to avoid potential precision issue when converting to singlelatitude
float value? could maybe have something like a named tuple instead of two separate variables? but probably not worth the extra effort.
That is the idea behind it. Float just does not have the precision required to hold all the information. I saw something else use a tuple later but that is my lack of python experience showing through.
Addresses issue #63 by adding two new latitude and two new longitude attributes for degrees and minutes. When combined as one value the current CP float limit cannot handle the full precision of latitude or longitude.
The
_parse_degrees
function was modified to give more precision to the existing latitude and longitude values (some was lost in the calculation not in the final storage) but that value is still imprecise.