class_docstr: Creates a numeric field for user to enter numbers as input or display numeric output.
  Preprocessing: passes field value as a {float} or {int} into the function, depending on `precision`.
  Postprocessing: expects an {int} or {float} returned from the function and sets field value to it.
  Examples-format: a {float} or {int} representing the number's value.
  
  Demos: tax_calculator, titanic_survival, blocks_simple_squares
code: def preprocess(self, payload: float | None) -> float | None:
      if payload is None:
          return None
      elif self.minimum is not None and payload < self.minimum:
          raise Error(
              f"Value {payload} is less than minimum value {self.minimum}."
          )
      elif self.maximum is not None and payload > self.maximum:
          raise Error(
              f"Value {payload} is greater than maximum value {self.maximum}."
          )
      return self._round_to_precision(payload, self.precision)
  
file_path: gradio/gradio/components/number.py
imports: from __future__ import annotations
  from typing import Any, Callable
  from gradio_client.documentation import document, set_documentation_group
  from gradio.components.base import FormComponent
  from gradio.events import Events
  from gradio.exceptions import Error
label_desc: Use image node_id 3 for calling the Number obj's underlying member method code with example usage: obj.preprocess(payload) and returns: self, None