This method returns the absolute value of an input number.
i − This is the input number for which the absolute value needs to be determined.
The return value is the absolute value of the input number.
/* Main program */ i = 50.5 j = -40.4 say ABS(i) say ABS(j)
When we run the above program, we will get the following result.