

def validate(self, text):
    ' Validates the given text matches the float range.\n\n        Parameters\n        ----------\n        text : unicode\n            The unicode text edited by the client widget.\n\n        Returns\n        -------\n        result : bool\n            True if the text is valid, False otherwise.\n\n        '
    try:
        value = float(text)
    except ValueError:
        return False
    minimum = self.minimum
    if ((minimum is not None) and (value < minimum)):
        return False
    maximum = self.maximum
    if ((maximum is not None) and (minimum > maximum)):
        return False
    if ((not self.allow_exponent) and ('e' in text.lower())):
        return False
    return True

dataset/ETHPy150Open nucleic/enaml/enaml/validator.py FloatValidator.validate/VarMisuse@79/180 `value`->`minimum`