class_docstr: A setting that allows only numeric input
      
class_docstr_tok: ["A","setting","that","allows","only","numeric","input"]
docstr: Return true only if the text value is float
          
docstr_tok: ["Return","true","only","if","the","text","value","is","float"]
code: def test_valid(self, pipeline):
      """Return true only if the text value is float"""
      try:
          value = self.str_to_value(self.value_text)
      except ValueError:
          raise ValidationError("Value not in decimal format", self)
      if self.__minval is not None and self.__minval > value:
          raise ValidationError(
              "Must be at least %s, was %s"
              % (self.value_to_str(self.__minval), self.value_text),
              self,
          )
      if self.__maxval is not None and self.__maxval < value:
          raise ValidationError(
              "Must be at most %s, was %s"
              % (self.value_to_str(self.__maxval), self.value_text),
              self,
          )
  
file_path: CellProfiler/src/subpackages/core/cellprofiler_core/setting/text/number/_number.py
imports: import logging
  from .._text import Text
  from ..._validation_error import ValidationError
label_desc: Use image node_id 11 for calling the Number obj's underlying member method code with example usage: obj.test_valid(pipeline) without return types