def trimval(thelist):
    """ Takes in number list or float and removes leading zeros """
    if type(thelist) == list:
        temp = []
        for i in thelist:
            if type(i) == int:
                temp.append(i)
            else:
                temp.append(float('%.4f' % i))
        thelist = temp
        return thelist
    elif type(thelist) == float:
        return float('%.4f' % thelist)
    return thelist
