MAX()
Returns the maximum of two numbers or dates.
Syntax
MAX( <xValue>, <xValue1> ) --> <xMax>
Arguments
<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.
Examples
? MAX( 214514214, 6251242142 ) ? MAX( STOD( "20001111" ), STOD( "20140621" ) )
Compliance
Clipper
Platforms
All
Files
Library is rtl
Seealso
Min()
Pingback: Harbour All Functions – M | Viva Clipper !
Pingback: Harbour Math Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !