Rexx - ABS


Advertisements

This method returns the absolute value of an input number.

Syntax

ABS(i)

Parameters

  • i − This is the input number for which the absolute value needs to be determined.

Return Value

The return value is the absolute value of the input number.

Example

/* 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.

Output

50.5 
40.4 
rexx_numbers.htm
Advertisements