multiply
Multiply two integers and get back an integer, on purpose
- INT
Scaling factors, tile counts, resolution math - multiplication shows up everywhere in ComfyUI, and usually you're doing it with a generic math node and then fighting the float it hands back. multiply from the Basic data handling pack is the boring, reliable alternative: two integers in, one integer out, no floating-point detour. If you're multiplying things that are whole numbers, this is the node that keeps your pipeline honest.
What it does
int1 * int2, exactly as you'd expect. Integer in, integer out, no rounding, no precision loss, no surprise 2.0 where you wanted 2. The defaults on both inputs are 1, so double-clicking the node gives you 1 and you build up from there.
The real value is the type contract. In a graph of other Basic data handling nodes - IntAdd, IntSubtract, IntDivide - everything stays INT end to end, so you never have to cast a float back down or wonder why a "clean" number came back with a decimal point. It's a small win that compounds the bigger your workflow gets.
Inputs and outputs
int1- INT, default1.int2- INT, default1.- Output
INT- the product.
Install
Ships in the Basic data handling pack. ComfyUI Manager → search "Basic data handling" → install → restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/StableLlama/ComfyUI-basic_data_handling
then restart ComfyUI. Zero dependencies, no models.
The one caveat
Big numbers. Python integers are arbitrary-precision, so 10^18 * 10^18 won't overflow like it would in a fixed-width language - but the resulting huge integer may then not fit into nodes downstream that expect normal-sized values. If you're multiplying things that get large, keep an eye on what your next node does with a 36-digit number. And when a fraction would actually be the right answer - a 0.5 scale factor, say - use the pack's float multiply instead; this node floors nothing, it just never produces a fraction in the first place.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| int1 | INT | 1 | — |
| int2 | INT | 1 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |