def _convert_gpslatitude_gpslongitude_to_degrees(value):
    """
    Helper function to convert the GPS coordinates stored in the EXIF GPSLatitude or GPSLongitude to degrees in float format
    Don't call directly, use get_latitude_longitude()
    """
    deg_num, deg_denom = value[0]
    d = float(deg_num) / float(deg_denom)
    min_num, min_denom = value[1]
    m = float(min_num) / float(min_denom) if min_denom != 0 else 0
    sec_num, sec_denom = value[2]
    s = float(sec_num) / float(sec_denom) if sec_denom != 0 else 0
    return d + m / 60.0 + s / 3600.0
