NMEA GLL to decimal degrees

This is filed under “things you don’t find on stack overflow”. Working with the sensors on the ships I found that my calculations I did to get the GPS location displayed in degrees, minutes and seconds was a bit off. When the ship appears to be in the middel…