ComfyUI Node: subtract

Class Name

Basic data handling: IntSubtract

Category
Basic/INT
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

subtract Description

IntSubtract node performs integer subtraction, returning the difference between two inputs.

subtract:

The IntSubtract 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 in your data processing workflow. By providing a straightforward method to subtract integers, it helps streamline tasks that involve numerical computations, making it an essential tool for scenarios where precise integer arithmetic is required. The node's primary function is to take two integer inputs and return the result of subtracting the second integer from the first, ensuring that users can easily manage and manipulate integer data within their projects.

subtract Input Parameters:

int1

int1 is the first integer input parameter for the IntSubtract node. It represents the minuend, which is the number from which the second integer (int2) will be subtracted. The default value for int1 is 0, but you can specify any integer value as needed for your calculations. This parameter is crucial as it determines the starting point of the subtraction operation, and its value directly impacts the final result.

int2

int2 is the second integer input parameter for the IntSubtract node. It acts as the subtrahend, which is the number that will be subtracted from the first integer (int1). Like int1, the default value for int2 is also 0, but you can provide any integer value to perform the desired subtraction. The value of int2 is essential as it defines the amount to be subtracted from int1, influencing the outcome of the operation.

subtract Output Parameters:

IO.INT

The output of the IntSubtract node is a single integer value, represented as IO.INT. This output is the result of the subtraction operation, where the value of int2 is subtracted from int1. The output is crucial for understanding the difference between the two input integers, and it can be used in subsequent nodes or processes that require this calculated difference. The output provides a clear and concise result of the subtraction, making it easy to interpret and utilize in various applications.

subtract Usage Tips:

  • Ensure that both int1 and int2 are set to the correct integer values before executing the node to avoid unexpected results.
  • Use the IntSubtract node in conjunction with other arithmetic nodes like IntAdd or IntMultiply to perform more complex calculations within your workflow.

subtract Common Errors and Solutions:

Incorrect input type

  • Explanation: The node expects integer inputs, but a non-integer value was provided.
  • Solution: Verify that both int1 and int2 are integers. Convert any non-integer inputs to integers before using the node.

Unexpected output

  • Explanation: The result of the subtraction is not as expected, possibly due to incorrect input values.
  • Solution: Double-check the values of int1 and int2 to ensure they are set correctly. Adjust the inputs as necessary to achieve the desired result.

subtract Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

subtract