@staticmethod
    def checkFloat(i, min, max, softCheck = False):
        if type(min) not in Parameter.floatTypes:
            return Parameter.whatToDo("Minimum value is not a float: " + str(min), softCheck)
        if type(max) not in Parameter.floatTypes:
            return Parameter.whatToDo("Maximum value is not a float: " + str(max), softCheck)
        if type(i) not in Parameter.floatTypes:
            return Parameter.whatToDo("Invalid parameter value (not float): " + str(i) + " is " + str(type(i)), softCheck)

        if i < min or i > max:
            return Parameter.whatToDo("Invalid parameter value: " + str(i) + " not in [" + str(min)+ ", " + str(max) + "]" , softCheck)
        return True
Check if i is an floating point value between min and max inclusive and raise a
dataset/ETHPy150Open charanpald/APGL/apgl/util/Parameter.py/Parameter.checkFloat