class_docstr: A setting that allows only numeric input
      
class_docstr_tok: ["A","setting","that","allows","only","numeric","input"]
docstr: Return the value of the string passed
  
  Override this in a derived class to parse the numeric text or
  raise an exception if badly formatted.
docstr_tok: ["Return","the","value","of","the","string","passed","Override","this","in","a","derived","class","to","parse","the","numeric","text","or","raise","an","exception","if","badly","formatted","."]
code: def str_to_value(self, str_value):
      """Return the value of the string passed
  
      Override this in a derived class to parse the numeric text or
      raise an exception if badly formatted.
      """
      raise NotImplementedError(
          "Please define str_to_value in a subclass"
      )
  
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 2 for calling the Number obj's underlying member method code with example usage: obj.str_to_value(str_value) without return types