Visit ComfyUI Online for ready-to-use ComfyUI environment
Perform integer subtraction with ease, get numerical and string results for workflow calculations.
The IntSubtraction node is designed to perform a simple arithmetic operation: subtracting one integer from another. This node is particularly useful when you need to calculate the difference between two integer values within your workflow. By providing an easy-to-use interface, it allows you to input two integers and obtain both the numerical result and its string representation. This can be beneficial in various scenarios, such as adjusting parameters dynamically or performing conditional operations based on the difference between two values.
This parameter represents the first integer value (A) that you want to subtract from. It serves as the minuend in the subtraction operation. The default value is 0, and it must be a non-negative integer. This parameter is crucial as it determines the starting point of your subtraction.
This parameter represents the second integer value (B) that you want to subtract from the first integer. It serves as the subtrahend in the subtraction operation. The default value is 0, and it must be a non-negative integer. This parameter is essential as it determines the amount to be subtracted from the first integer.
This output provides the result of the subtraction operation as an integer. It represents the difference between the first integer (A) and the second integer (B). This output is useful when you need the numerical result for further calculations or conditional logic.
This output provides the result of the subtraction operation as a string. It represents the difference between the first integer (A) and the second integer (B) in a textual format. This output is useful when you need to display the result or use it in contexts where a string representation is required.
This output simply returns the second integer value (B) as is. It can be useful for reference or for further operations where the original subtracted value is needed.
int_value
and subtracted_value
are non-negative integers before passing them to the node.© Copyright 2024 RunComfy. All Rights Reserved.