def adjust_val_to_360(val):
    """
    Take in a single numeric (or null) argument.
    Return argument adjusted to be between
    0 and 360 degrees.
    """
    if not val and (val != 0):
        return None
    else:
        try:
            return float(val) % 360
        except ValueError:
            return val