Visit ComfyUI Online for ready-to-use ComfyUI environment
Perform mathematical evaluations on two float values using a user-defined formula, providing results in multiple formats.
The EvalFloats node is designed to perform mathematical evaluations on two floating-point numbers based on a user-defined formula. This node allows you to input two float values and a formula string, which can include basic arithmetic operations and references to the input values. The node then computes the result of the formula and provides it in multiple formats. This functionality is particularly useful for AI artists who need to perform custom calculations within their workflows, offering flexibility and precision in mathematical operations without requiring extensive coding knowledge.
This parameter represents the first floating-point number to be used in the formula. It serves as one of the primary inputs for the calculation. The default value is 0.0, and it can be adjusted to any float value as needed.
This parameter represents the second floating-point number to be used in the formula. Similar to parameter a
, it is a crucial input for the calculation. The default value is 0.0, and it can be set to any float value according to the requirements of the formula.
This parameter is a string that defines the mathematical formula to be evaluated. The formula can include basic arithmetic operations and should reference the input values a
and b
. For example, a formula could be a + b
or `a * b
. The default formula is
a + b`, and it is not multiline, meaning it should be a single line of text.This output parameter provides the result of the evaluated formula as a floating-point number. It represents the primary outcome of the calculation and is useful for further numerical operations or analysis.
This output parameter provides the result of the evaluated formula as an integer. It converts the floating-point result to an integer, which can be useful in scenarios where an integer value is required.
This output parameter provides the result of the evaluated formula as a string. It converts the floating-point result to a string format, which can be useful for display purposes or when the result needs to be concatenated with other text.
a
and b
to avoid errors in the calculation.a
and b
affect the result.a
and b
.a
and b
.a
and b
to reference the input values.© Copyright 2024 RunComfy. All Rights Reserved.