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: -999999999999 to 999999999999
  • 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: -999999999999 to 999999999999
  • 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 + b
  • subtract: a - b
  • multiply: a * b
  • divide: a / b
  • modulo: 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 add and multiply. For example, subtract uses a - b, not b - a.
  • Both a and b default to 0, so if you use divide or modulo without changing b, the operation will be performed with b = 0. Be mindful of zero divisors.
  • The step of 0.01 applies to the widget, but does not restrict values arriving from connected nodes.
  • All results are FLOAT values, making the node suitable for feeding into other numeric or logic nodes in an EasyUse workflow.

Comments

Sign in with GitHub to join the discussion.

Loading comments…