Returns the larger of two signed integers
Class: Mathematical
Parameters: x – An integer number
y – An integer number
Syntax: returnValue=max(x, y)
Returns: An integer number
Remarks: None
Example:
//Example for the mathematical max method
x=4 //Set first value
y=5 //Set second value
result=max(x, y) //Calculate result (= 5)
message(“Maximum of “ + x + “ and“ + y + “ is “ + result) //Display results message