MathMax Method (Int32, Int32) |
Returns the larger of two 32-bit signed integers.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static int Max(
int val1,
int val2
)
Parameters
- val1
- Type: SystemInt32
The first of two 32-bit signed integers to compare. - val2
- Type: SystemInt32
The second of two 32-bit signed integers to compare.
Return Value
Type:
Int32Parameter
val1 or
val2, whichever is larger.
See Also