def dms_to_deg(dms):
    """
    Convert angles degrees, minutes, seconds to float degrees.
    
    Param: dms - Object of type dms representing angle.
    
    Returns angle in degrees (float).
    """
    degrees = dms.degrees + dms.minutes / 60.0 + dms.seconds / 3600.0
    if dms.neg:
        degrees *= -1
    return degrees
