Max()

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()

3 responses to “Max()

  1. Pingback: Harbour All Functions – M | Viva Clipper !

  2. Pingback: Harbour Math Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.