Previous Topic: LTRIM Function--Remove Leading Spaces in a String

Next Topic: MAYBE Function--Report an Indeterminate Result

MAX Function--Determine the Larger of Two Values

The MAX function returns the larger of two numeric arguments.

Syntax

The MAX function has the following format:

MAX(int_1, int_2)

Parameters

The MAX function accepts the following parameters:

int_1 (number)

int_2 (number)

Return Value

The MAX function returns a number.

Example

Return_value=MAX(-2, 4)
Return_value=4

More information:

MIN Function--Determine the Lesser of Two Numbers


Copyright © 2010 CA. All rights reserved. Email CA about this topic