# ABS()

Return the absolute value of a number.

Syntax

  ABS(<nNumber>) --> <nAbsNumber>

Arguments

  <nNumber> Any number.

Returns

  <nAbsNumber> The absolute numeric value.

Description

  This function yields the absolute value of the numeric value or expression <nNumber>.

Examples

          Proc Main()

          Local nNumber:=50
          Local nNumber1:=27
          cls

          qout(nNumber-nNumber1)
          qout(nNumber1-nNumber)
          qout(ABS(nNumber-nNumber1))
          qout(ABSnNumber1-nNumber))
          qout(ABS( -1 * 345))

Status

  Ready

Compliance

  This function is CA-Clipper compliant.

Platforms

  All

Files

  Library is rtl

See Also

- EXP()