Math blocks provide numerical operations and calculations for your scripts. Use these blocks to perform arithmetic, apply mathematical functions, and manipulate numeric values from sensors or variables.
value
A numeric constant. Use this block to provide fixed numbers for calculations, comparisons, or as parameters to other blocks.
Parameters:
Value (Number): Enter any numeric value (integers or decimals)
Example:
Define temperature thresholds
math operation
Applies a single-value mathematical operation. Choose from absolute value (removes sign) or negation (flips positive to negative and vice versa).
Parameters:
Operation: Select abs (absolute value) or - (negate)
Value (Number): The number to operate on
Returns:
Number: The result of the operation
Example:
Temperature difference calculation
arithmetic
Performs basic arithmetic operations between two numbers.