abs
This function is used by Ignition's Expression language.
Description​
Returns the absolute value of number.
Syntax​
abs(number)
Parameters​
Type | Parameter | Description |
---|---|---|
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