Nodes/WtlNodes/Multiply
ComfyUI Node

Multiply

Multiply by a value and keep the type you came in with

By Scorpiosis0·Created 10 months ago·Updated 2 months ago· 3
Multiply
  • x
  • result
int_value1
float_value1.00

WtlMultiply is the multiplier from the WtlNodes logic family, and like its siblings it exists to fix a genuinely annoying gap: stock ComfyUI math nodes demand a specific number type on their input, so a value computed mid-workflow often refuses to connect. This node's x input accepts INT or FLOAT, and it multiplies whatever arrives by a value you set.

The clever bit is the dual slider. int_value and float_value both default to 1, and the frontend shows only the one matching the type connected to x. Connect an integer and you see an integer multiplier; connect a float and you get a float multiplier. Pick a type, you get the matching widget - no "expected INT but got FLOAT" drama.

Output is result, typed INT,FLOAT, and the node preserves type the way you'd want: int × int stays int, any float in the chain yields a float. That matters more than it sounds. Multiplying a batch-count int and getting a float back would break the next node's INT socket; here, what goes in is what comes out, scaled.

It's the natural companion to WtlAdd and WtlSubtract in the same pack - the classic use is scaling values computed elsewhere in the graph: halve a denoise, double a step count, apply a percentage to a seed offset. If you're the kind of person who types numbers into widgets and calls it done, you don't need this node. If your workflows compute values with other nodes and then need to scale them, this is the un-fiddly path.

Install the pack once and it's there for all of them. ComfyUI Manager, search "WtlNodes":

cd ComfyUI/custom_nodes
git clone https://github.com/Scorpiosis0/ComfyUI-WtlNodes.git

restart ComfyUI, done. Dependencies are numpy, scipy, and pillow only - no models, no keys, no GPU footprint. Multiplication of the type-checked variety, no surprises.

CategoryWtlNodes/logic

Inputs (3)

NameTypeDefaultDescription
xINT,FLOAT
int_valueINT1-2147483648–2147483647
float_valueFLOAT1.00-1000000000–1000000000

Outputs (1)

NameTypeDescription
resultINT,FLOAT