$FUNCNAME$
  ABS()
$CATEGORY$
  Numeric
$SUMMARY$
   Return the absolute value of a numeric expression
$LANG_RU$
       .
$SYNTAX$
     ABS(<nExp>) --> nPositive
$LANG_RU$
     ABS(< >) -->  
$ARGUMENTS$
     <nExp> is the numeric expression to be evaluated.
$LANG_RU$
     < > -   , 
       .
$RETURNS$

     ABS() returns a number representing the absolute value of its argument.
     The return value is a positive number or zero.


$LANG_RU$

     ABS()  ,    
     .   -    
     .


$DESCRIPTION$

     ABS() is a numeric function that determines the magnitude of a numeric
     value independent of its sign.  It lets you, for example, obtain the
     difference between two numbers as a positive value without knowing in
     advance which of the two is larger.

     As a formalism, ABS(x) is defined in terms of its argument, x, as
     follows: if x >= 0, ABS(x) returns x; otherwise, ABS(x) returns the
     negation of x.


$LANG_RU$

     ABS() -   ,     
          .  , ,
            
     ,   ,    .

       ABS(X)      X
      :  X > 0,  ABS( X )  X,  ABS(X)
      -X.


$EXAMPLES$

       These examples show typical results from ABS():

	nNum1 := 100
	nNum2 := 150
	? nNum1 - nNum2                  // Result: -50
	? ABS(nNum1 - nNum2)             // Result: 50
	? ABS(nNum2 - nNum1)             // Result: 50
	? ABS(-12)                       // Result: 12
	? ABS(0)                         // Result: 0


$LANG_RU$

          , 
        ABS():

       nNum1 = 100
       nNum2 = 150
       ? nNum1 - nNum2              // : -50
       ? ABS(nNum1 - nNum2)         // : 50
       ? ABS(nNum2 - nNum1)         // : 50
       ? ABS(-12)                   // : 12
       ? ABS(0)                     // : 0


$SEEALSO$

$END$
