@MAX[a,b,c,...]: Returns the largest in the list of parameters. All parameters must be integers in the range -2147483647 to 2147483647 and must be separated either by whitespace or by commas.

 

Numeric input may be entered in either decimal format (a sequence of 0-9 digits) or in hexadecimal format ("0x" followed by a sequence of 0-F hex digits).

 

Example:

 

echo %@max[1,5,2,0,-1]

5