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.