class_docstr: A slot storing a float value.
class_docstr_tok: ["A","slot","storing","a","float","value","."]
code: def _as_feature(self) -> List[float]:
      try:
          capped_value = max(
              self.min_value, min(self.max_value, float(self.value))
          )
          if abs(self.max_value - self.min_value) > 0:
              covered_range = abs(self.max_value - self.min_value)
          else:
              covered_range = 1
          return [1.0, (capped_value - self.min_value) / covered_range]
      except (TypeError, ValueError):
          return [0.0, 0.0]
  
imports: import logging
  from abc import ABC, abstractmethod
  from typing import Any, Dict, List, Optional, Text, Type
  import rasa.shared.core.constants
  from rasa.shared.exceptions import RasaException
  import rasa.shared.utils.common
  import rasa.shared.utils.io
  from rasa.shared.constants import DOCS_URL_SLOTS
label_desc: Use image node_id 2 for calling the FloatSlot obj's underlying member method code with example usage: obj._as_feature() and returns: list, list