You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The abs native AI script function returns the absolute value of the input value.
Syntax
(absolute\_value: f)abs(value: f) // abs_f_f
Arguments
value(float): The input value.
Return values
absolute_value(float): The absolute value of the input value (always positive).
Examples
(dist)abs(diff);
This example code calls the abs function with a difference between two values as input and returns and assigns the absolute value of that difference to the variable dist.