Ratio: 0 / 5

Inicio desactivadoInicio desactivadoInicio desactivadoInicio desactivadoInicio desactivado
 

Abs()

Return the absolute value of a number.
Syntax
Abs( <nNumber> ) --> <nAbsNumber>
Argument(s)
<nNumber> Any number.
Returns
<nAbsNumber> The absolute numeric value.
Description
This function yields the absolute value of the numeric value or expression <nNumber>.
Example(s)
PROCEDURE Main()
   LOCAL nNumber := 50
   LOCAL nNumber1 := 27
   CLS
   ? nNumber - nNumber1
   ? nNumber1 - nNumber
   ? Abs( nNumber - nNumber1 )
   ? Abs( nNumber1 - nNumber )
   ? Abs( -1 * 345 )
Status
Ready
Compliance
This is CA-Cl*pper v5.2 compliant
Platform(s)
This is available on all platforms
File(s)

Library is core