EasyUse/Logic/Mathgenerated
Math Float(mathFloatOperation)
The Math Float node performs a single arithmetic operation on two float inputs (a and b).
math Float Operation
FLOAT
a
0.00
b
0.00
operation
COMBO
Easy Use
Description
The Math Float node performs a single arithmetic operation on two float inputs (a and b). It is a minimal building block for math logic in the EasyUse/Logic/Math category, returning the result as a FLOAT.
Inputs
a
- Type:
FLOAT - Required: Yes
- Default:
0 - Range:
-999999999999to999999999999 - Step:
0.01
The first operand. For non-commutative operations (subtract, divide, modulo, power), it is the left-hand side of the operation.
b
- Type:
FLOAT - Required: Yes
- Default:
0 - Range:
-999999999999to999999999999 - Step:
0.01
The second operand. For non-commutative operations, it is the right-hand side of the operation.
operation
- Type:
COMBO - Required: Yes
- Options:
add,subtract,multiply,divide,modulo,power
Determines which arithmetic operation is applied to a and b:
add:a + bsubtract:a - bmultiply:a * bdivide:a / bmodulo:a % b(remainder after division)power:a ** b(a raised to the power b)
Outputs
FLOAT
- Type:
FLOAT
The numeric result of the selected operation. The value is always returned as a float, even when the mathematical result is an integer.
Usage Notes
- The order of the operands matters for every operation except
addandmultiply. For example,subtractusesa - b, notb - a. - Both
aandbdefault to0, so if you usedivideormodulowithout changingb, the operation will be performed withb = 0. Be mindful of zero divisors. - The
stepof0.01applies to the widget, but does not restrict values arriving from connected nodes. - All results are
FLOATvalues, making the node suitable for feeding into other numeric or logic nodes in anEasyUseworkflow.
Comments
Sign in with GitHub to join the discussion.