Icon Max

Unit: Internal

Available In: Client and Server Applications

function Max(A,B: Integer): Integer

function Max(A,B: Double): Double

The Max function returns the greater of the two input parameters. If A is greater than B, then A is returned. If B is greater than A, then B is returned. The return value is the same type as the input parameters.

Examples

X := Max(100,2);  // X is 100
Image