[Python-ideas] Geo coordinates conversion in stdlib

random832 at fastmail.us random832 at fastmail.us
Mon Mar 23 12:36:11 CET 2015


On Sun, Mar 22, 2015, at 19:13, Chris Barker wrote:
> On Sun, Mar 22, 2015 at 3:37 PM, Andrew Barnert <
> abarnert at yahoo.com.dmarc.invalid> wrote:
> 
> >  If you can't figure out the complexity of multiplying and divmodding by
> > 60 twice, you can borrow its code, or just wrap it and delegate. That seems
> > trivial enough to do in any project that needs it.
> 
> 
> I"m not suggesting this is an stdlib candiate, but it'snot quite that
> simple. With FP precision issues you can end up with results like:
> 
> 1° 60′ 13″

I'm not sure I believe this is true. Do you have a concrete example of
an actual floating point value that will do this?


More information about the Python-ideas mailing list