Visit ComfyUI Online for ready-to-use ComfyUI environment
Perform complex mathematical operations on multiple input parameters with basic arithmetic operators, supporting integer and float types for versatile output.
The MultiIntFormula
node is designed to perform mathematical operations on multiple input parameters, allowing you to create complex expressions using basic arithmetic operators such as addition, subtraction, multiplication, division, and modulus. This node is particularly useful for AI artists who need to manipulate numerical data within their workflows, providing a flexible and powerful tool to compute results based on user-defined expressions. By supporting both integer and float types, the node ensures versatility in handling different numerical inputs, and it outputs results in both integer and float formats, catering to various needs in your creative processes.
The expression
parameter is a string input where you define the mathematical formula to be evaluated. This parameter supports a wide range of arithmetic operations, including addition (+
), subtraction (-
), multiplication (*
), division (/
), modulus (%
), and the use of parentheses for grouping. The expression should be written using English characters and can include multiple variables such as n0
, n1
, etc., which are defined as optional inputs. This flexibility allows you to craft complex calculations tailored to your specific requirements.
The n0
parameter is an optional input that can be either an integer or a float. It serves as one of the variables in your expression, allowing you to dynamically adjust the calculation based on the value provided. This parameter does not have a predefined default value, so it should be specified if used in the expression.
Similar to n0
, the n1
parameter is another optional input that accepts both integer and float values. It acts as an additional variable in your expression, providing further customization and control over the mathematical operations you wish to perform. Like n0
, it does not have a default value and should be defined if included in the expression.
The INT
output parameter provides the result of the evaluated expression as an integer. This output is particularly useful when you need a whole number result for further processing or integration into other parts of your workflow. The integer output ensures compatibility with systems or nodes that require integer inputs.
The FLOAT
output parameter delivers the result of the evaluated expression as a floating-point number. This output is essential when precision is required, or when the result needs to be used in calculations that involve decimal values. The float output offers greater flexibility and accuracy for complex mathematical operations.
n0
and n1
parameters to dynamically adjust your calculations, providing greater flexibility and control over the results.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.