class_docstr: A slot storing a float value.
class_docstr_tok: ["A","slot","storing","a","float","value","."]
docstr: Creates a FloatSlot.
  
  Raises:
      InvalidSlotConfigError, if the min-max range is invalid.
      UserWarning, if initial_value is outside the min-max range.
code: def __init__(
      self,
      name: Text,
      mappings: List[Dict[Text, Any]],
      initial_value: Optional[float] = None,
      value_reset_delay: Optional[int] = None,
      max_value: float = 1.0,
      min_value: float = 0.0,
      influence_conversation: bool = True,
  ) -> None:
      """Creates a FloatSlot.
  
      Raises:
          InvalidSlotConfigError, if the min-max range is invalid.
          UserWarning, if initial_value is outside the min-max range.
      """
      super().__init__(
          name,
          mappings,
          initial_value,
          value_reset_delay,
          influence_conversation,
      )
      self.max_value = max_value
      self.min_value = min_value
  
      if min_value >= max_value:
          raise InvalidSlotConfigError(
              "Float slot ('{}') created with an invalid range "
              "using min ({}) and max ({}) values. Make sure "
              "min is smaller than max."
              "".format(self.name, self.min_value, self.max_value)
          )
  
      if initial_value is not None and not (
          min_value <= initial_value <= max_value
      ):
          rasa.shared.utils.io.raise_warning(
              f"Float slot ('{self.name}') created with an initial value "
              f"{self.value}. This value is outside of the configured min "
              f"({self.min_value}) and max ({self.max_value}) values."
          )
  
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 1 to create a new FloatSlot object from inherited base classes: Slot with example: obj = FloatSlot(name, mappings, initial_value, value_reset_delay, max_value, min_value, influence_conversation)