ComfyUI Node: max

Class Name

Basic data handling: MathMax

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

max Description

MathMax node identifies and returns the maximum value from integer or floating-point inputs.

max:

The MathMax node is designed to identify and return the maximum value from a set of inputs. This node is particularly useful when you need to determine the largest number from a pair of values, which can be either integers or floating-point numbers. By leveraging this node, you can efficiently compare numerical values and extract the highest one, making it an essential tool for tasks that require maximum value determination. Its ability to handle both integer and floating-point numbers ensures versatility and broad applicability in various scenarios where numerical comparisons are needed.

max Input Parameters:

value1

The value1 parameter represents the first numerical input that the node will evaluate to determine the maximum value. This parameter can accept both integer and floating-point numbers, and it is designed to be flexible by allowing input as a string, which will be converted to a numerical value. The default value for value1 is 0.0, and it plays a crucial role in the node's execution as it serves as one of the primary values for comparison.

value2

The value2 parameter is the second numerical input used by the node to find the maximum value. Similar to value1, this parameter can handle both integer and floating-point numbers and accepts input in string format, which is then converted to a numerical value. The default value for value2 is also 0.0. This parameter is essential for the node's operation, as it provides the second value for comparison to determine which of the two inputs is larger.

max Output Parameters:

*

The output parameter of the MathMax node is a single value that represents the maximum of the two input values. This output is crucial as it provides the result of the comparison, indicating which of the input values is the largest. The output can be either an integer or a floating-point number, depending on the input values provided. This flexibility ensures that the node can be used in a wide range of applications where determining the maximum value is necessary.

max Usage Tips:

  • Ensure that the input values are correctly formatted as numbers or strings that can be converted to numbers to avoid errors during execution.
  • Use the MathMax node in scenarios where you need to compare two values and determine the larger one, such as in decision-making processes or when setting thresholds.

max Common Errors and Solutions:

Invalid input type

  • Explanation: This error occurs when the input values cannot be converted to a numerical format, such as when non-numeric strings are provided.
  • Solution: Ensure that the inputs are either numbers or strings that represent valid numbers to prevent conversion errors.

Missing input values

  • Explanation: This error happens when one or both input parameters are not provided, leading to incomplete data for comparison.
  • Solution: Always provide both value1 and value2 to ensure the node has sufficient data to perform the maximum value calculation.

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

max