def num_to_list(num):
    """Returns a list of digits in num (most significant digit first)."""
    result = []
    if (num < 0):
        return result
    else:
        str_num = str(num)
        for c in str_num:
            result.append(int(c))
        return result