Visit ComfyUI Online for ready-to-use ComfyUI environment
Perform integer subtraction with flexibility in AI art projects, providing integer and floating-point results for creative workflows.
The Substract Int Int (JPS) node is designed to perform a simple arithmetic operation of subtraction between two integer values. This node is particularly useful when you need to calculate the difference between two numbers within your AI art projects. By providing both the integer and floating-point results of the subtraction, it offers flexibility in how you can use the output values in subsequent nodes or processes. This node is part of the JPS Nodes/Math category, which includes various mathematical operations to enhance your creative workflows.
This parameter represents the first integer value to be subtracted. It serves as the minuend in the subtraction operation. The default value is set to 1, but you can adjust it to any integer value as needed for your specific use case. The value of int_a
directly impacts the result of the subtraction, as it is the starting point from which int_b
will be subtracted.
This parameter represents the second integer value to be subtracted from int_a
. It serves as the subtrahend in the subtraction operation. Similar to int_a
, the default value is set to 1, but it can be modified to any integer value according to your requirements. The value of int_b
determines the amount that will be subtracted from int_a
, thus affecting the final result of the operation.
This output parameter provides the result of the subtraction as an integer. It represents the difference between int_a
and int_b
in integer form. This output is useful when you need a whole number result for further integer-based operations or conditions in your workflow.
This output parameter provides the result of the subtraction as a floating-point number. Although the subtraction operation is performed on integers, this output converts the result to a float, offering more flexibility for subsequent operations that may require floating-point precision. This can be particularly useful in scenarios where the result needs to be used in calculations that involve non-integer values.
int_substract
output when you need a whole number result for further integer-based operations or conditions in your workflow.float_substract
output if you plan to use the result in calculations that require floating-point precision, ensuring more accurate and flexible outcomes.int_a
or int_b
are not integers.int_a
and int_b
are provided as integer values. Double-check the input types and correct them if necessary.© Copyright 2024 RunComfy. All Rights Reserved.