ComfyUI Node: min

Class Name

Basic data handling: MathMin

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

min Description

MathMin node identifies and returns the smallest value from multiple integer, float, or string inputs.

min:

The MathMin node is designed to identify and return the smallest value from a set of inputs. This functionality is particularly useful when you need to determine the minimum value among two or more numbers, which can be crucial in various computational scenarios, such as optimizing parameters or making decisions based on the lowest value. The node is versatile, handling both integer and floating-point numbers, and even accepts inputs as strings, converting them to numerical values for comparison. This flexibility ensures that you can seamlessly integrate the node into workflows that involve different data types, enhancing its utility in diverse applications.

min Input Parameters:

value1

This parameter represents the first numerical input for the MathMin node. It can be provided as a float, integer, or string, allowing for a wide range of input types. The node will convert string inputs to numerical values to ensure accurate comparison. The default value is 0.0, and there are no explicit minimum or maximum constraints, but the input should be a valid number to avoid errors.

value2

Similar to value1, this parameter is the second numerical input for the node. It also accepts float, integer, or string types, providing flexibility in how you supply data to the node. The default value is 0.0, and like value1, it should be a valid number to ensure the node functions correctly.

min Output Parameters:

*

The output of the MathMin node is a single value, which is the minimum of the provided inputs. This output is crucial for tasks that require the identification of the smallest value among a set of numbers, enabling you to make informed decisions or adjustments based on this result. The output type is flexible, accommodating both integer and floating-point numbers, depending on the input values.

min Usage Tips:

  • Ensure that all input values are valid numbers or strings that can be converted to numbers to avoid errors during execution.
  • Use the MathMin node in scenarios where determining the smallest value is critical, such as setting thresholds or limits in your AI art projects.

min Common Errors and Solutions:

Invalid input type

  • Explanation: This error occurs when the input values cannot be converted to a numerical type.
  • Solution: Verify that all inputs are either numbers or strings that represent valid numbers.

ValueError: could not convert string to float

  • Explanation: This error arises when a string input cannot be converted to a float due to invalid characters or format.
  • Solution: Check the string inputs to ensure they are correctly formatted as numbers, without any extraneous characters or spaces.

min 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.

min