&ABS

Holds the absolute value of a numeric argument. Character strings are acceptable as arguments if they can be converted to numeric type.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

&ABS (number)

Aliases:

&abs (number)     &Abs (number)

Comments:

  • &ABS returns:

    arg if arg > 0

    0 if arg = 0

    -arg if arg < 0

  • The argument range is 2,147,483,648 to 2,147,483,647.

Example:

&ABS (0)  = 0
&ABS (123)  = 123
&ABS (-123)  = 123
&ABS ("-123")  = 123