abs
This function is used by Ignition's Expression language.
Description​
Returns the absolute value of number.
Syntax​
abs(number)
Parameters
- Integer/Float number - The number to get the absolute value of.
Results
- Integer/Float - The absolute value of the number provided.
Examples​
Code Snippet
abs(-4) //returns 4