$FUNCNAME$
  MAX()
$CATEGORY$
  NUMERIC,DATE/TIME
$SUMMARY$
   Return the larger of two numeric or date values
$LANG_RU$
         .
$SYNTAX$
     MAX(<nExp1>, <nExp2>) --> nLarger
     MAX(<dExp1>, <dExp2>) --> dLarger
$LANG_RU$
     MAX(< 1>, < 2>) -->  
     MAX(<1>,<2>) -->  
$ARGUMENTS$
     <nExp1> and <nExp2> are the numeric values to be compared.
     <dExp1> and <dExp2> are the date values to be compared.
$LANG_RU$
     < 1>  < 2> - 
     .
     <1>  <2> -   .
$RETURNS$
     MAX() returns the larger of the two arguments.  The value returned is
     the same type as the arguments.
$LANG_RU$
     MAX()      .  
      ,    .
$DESCRIPTION$
     MAX() is a numeric and date function that ensures the value of an
     expression is larger than a specified minimum.  The inverse of MAX() is
     MIN(), which returns the lesser of two numeric or date values.
$LANG_RU$
     MAX()       . 
        ,    
       .    MIN(),
             .
$EXAMPLES$
       In these examples MAX() returns the greater of two numeric
	values:

	? MAX(1, 2)                     // Result: 2
	? MAX(2, 1)                     // Result: 2

       In these examples MAX() compares date values:

	? DATE()                           // Result: 09/01/90
	? MAX(DATE(), DATE() + 30)         // Result: 10/01/90
	? MAX(DATE(), CTOD(""))            // Result: 09/01/90
$LANG_RU$
          ,   MAX() 
           :

       ? MAX( 1, 2)                 // : 2
       ? MAX( 2, 1)                 // : 2

         MAX(),   :

       ? DATE()                     // : 09/01/90
       ? MAX(DATE(), DATE() + 30)   // : 10/01/90
       ? MAX(DATE(), CTOD(""))      // : 09/01/90
$SEEALSO$
  MIN()
$END$
