Skip to content

Float Divide

Documentation

  • Class name: JWFloatDiv
  • Category: jamesWalker55
  • Output node: False

The JWFloatDiv node performs division between two float values, returning the result as a float. This operation allows for the dynamic computation of ratios or adjustments based on floating-point numbers.

Input types

Required

  • a
    • The 'a' parameter represents the dividend in the division operation. It's a crucial component as it determines the base value from which the division starts.
    • Comfy dtype: FLOAT
    • Python dtype: float
  • b
    • The 'b' parameter acts as the divisor in the division operation. Its value directly influences the result, making it essential for calculating the division outcome.
    • Comfy dtype: FLOAT
    • Python dtype: float

Output types

  • float
    • Comfy dtype: FLOAT
    • The output is the result of dividing the 'a' parameter by the 'b' parameter. It represents the quotient in float format.
    • Python dtype: float

Usage tips

  • Infra type: CPU
  • Common nodes: unknown

Source code

        @register_node(identifier, display_name)
        class _:
            CATEGORY = category
            INPUT_TYPES = lambda: {"required": required_inputs}
            RETURN_TYPES = tuple(return_types)
            OUTPUT_NODE = output_node
            FUNCTION = "execute"

            def execute(self, *args, **kwargs):
                return func(*args, **kwargs)