ComfyUI Node: subtract

Class Name

Basic data handling: FloatSubtract

Category
Basic/FLOAT
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

Performs subtraction of two floating-point numbers for easy integration into workflows.

subtract:

The FloatSubtract node is designed to perform a simple yet essential arithmetic operation: subtraction of two floating-point numbers. This node is particularly useful when you need to calculate the difference between two values, which is a common requirement in various computational tasks. By providing a straightforward interface for subtraction, it allows you to easily integrate this operation into larger workflows without needing to manually handle the arithmetic. This node is part of the basic data handling suite, ensuring that even those with minimal technical expertise can perform precise mathematical operations with ease. Its primary goal is to facilitate the subtraction process, making it an indispensable tool for AI artists who need to manipulate numerical data efficiently.

subtract Input Parameters:

float1

float1 is the first input parameter representing the minuend in the subtraction operation. It is a floating-point number that serves as the starting value from which the second float will be subtracted. The default value for float1 is 0.0, but it can be set to any valid floating-point number depending on the specific requirements of your task. This parameter is crucial as it determines the initial value from which the subtraction will occur, directly impacting the result of the operation.

float2

float2 is the second input parameter and represents the subtrahend in the subtraction operation. It is also a floating-point number and is subtracted from float1. The default value for float2 is 0.0, but like float1, it can be adjusted to any valid floating-point number to suit your needs. This parameter is essential as it defines the amount to be subtracted from float1, thereby influencing the final outcome of the subtraction.

subtract Output Parameters:

float

The output parameter float is the result of the subtraction operation, specifically the difference obtained by subtracting float2 from float1. This output is a single floating-point number that reflects the calculated difference. It is important because it provides the final result of the node's operation, which can then be used in subsequent processes or analyses within your workflow.

subtract Usage Tips:

  • Ensure that both float1 and float2 are set to the desired values before executing the node to obtain accurate results.
  • Use this node in conjunction with other arithmetic nodes to build complex mathematical expressions and workflows.

subtract Common Errors and Solutions:

Incorrect input type

  • Explanation: The node expects floating-point numbers as input, but a different data type was provided.
  • Solution: Verify that both float1 and float2 are correctly set as floating-point numbers before executing the node.

Unexpected result

  • Explanation: The output is not as expected due to incorrect input values.
  • Solution: Double-check the values of float1 and float2 to ensure they are set correctly and reflect the intended operation.

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