def dms_to_dd(degrees, minutes, seconds):
    """Convert degrees, minutes, seconds to decimal degress"""

    fd = float(degrees)
    if fd < 0:
        return fd - float(minutes) / 60 - float(seconds) / 3600

    return fd + float(minutes) / 60 + float(seconds) / 3600