def _tuple_to_float(what):
    if what[0] < 0:
        sign = -1
        value = float(what[0]) * -1
    else:
        sign = 1
        value = float(what[0])
    value += float(what[1]) / 60.0
    value += float(what[2]) / 3600.0
    value += float(what[3]) / 3600000.0
    return sign * value
dataset/ETHPy150Open catap/namebench/nb_third_party/dns/rdtypes/ANY/LOC.py/_tuple_to_float/original