Imprimir
Categoría: Math

Ratio: 0 / 5

Inicio desactivadoInicio desactivadoInicio desactivadoInicio desactivadoInicio desactivado
 

Max()

Returns the maximum of two numbers or dates.
Syntax
Max( <xValue>, <xValue1> ) --> <xMax>
Argument(s)
<xValue> Any date or numeric value.
<xValue1> Any date or numeric value (same type as <xValue>).
Returns
<xMax> The larger numeric (or later date) value.
Description
This function returns the larger of the two passed espressions. If <xValue> and <xValue1> are numeric data types, the value returned by this function will be a numeric data type as well and will be the larger of the two numbers passed to it. If <xValue> and <xValue1> are date data types, the return value will be a date data type as well. It will be the later of the two dates passed to it.
Example(s)
? Max( 214514214, 6251242142 )
? Max( hb_SToD( "20001111" ), hb_SToD( "20140621" ) )
Status
Ready
Compliance
This is CA-Cl*pper v5.2 compliant
Platform(s)
This is available on all platforms
File(s)
Library is core
See also

Min()