🧮 IG Multiply¶
Documentation¶
- Class name:
IG Multiply
- Category:
🐓 IG Nodes/Math
- Output node:
False
The IG Multiply node performs multiplication of two floating-point values, providing a straightforward way to compute the product of two numbers within a graphical programming environment.
Input types¶
Required¶
Value_A
- Specifies the first floating-point value to be multiplied. Its range is virtually unlimited, allowing for a wide variety of numerical inputs.
- Comfy dtype:
FLOAT
- Python dtype:
float
Value_B
- Determines the second floating-point value to be multiplied. Similar to Value_A, it supports a broad range of numerical inputs, enabling diverse multiplication scenarios.
- Comfy dtype:
FLOAT
- Python dtype:
float
Output types¶
float
- Comfy dtype:
FLOAT
- The result of multiplying the input values Value_A and Value_B, returned as a floating-point number.
- Python dtype:
float
- Comfy dtype:
Usage tips¶
- Infra type:
CPU
- Common nodes: unknown
Source code¶
class IG_MultiplyNode:
def __init__(self) -> None:
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"Value_A": ("FLOAT", {"default": 1, "min": -sys.float_info.max, "max": sys.float_info.max, "step": FLOAT_STEP}),
"Value_B": ("FLOAT", {"default": 1, "min": -sys.float_info.max, "max": sys.float_info.max, "step": FLOAT_STEP}),
},
}
RETURN_TYPES = ("FLOAT",)
FUNCTION = "main"
CATEGORY = TREE_MATH
def main(self, Value_A, Value_B):
total = float(Value_A * Value_B)
return (total,)