The following shows the format of the Abs function syntax.
Abs({expression})
The following table lists the elements of the Abs function syntax.
Element
Description
{expression}
Any valid numeric expression between -32768 and 65535. This includes signed numbers which range from -32768 to 32767 and unsigned numbers which range from 0 to 65535.
When a Abs function is encountered during the program's execution, it takes the {expression} element which is expressed as a number and calculates and then returns the absolute value of that number. The absolute value of the number is the number with the sign removed. For example, Abs(-3) is 3 and Abs(3) is also 3.