MathMin Method (Int16, Int16) |
Returns the smaller of two 16-bit signed integers.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static short Min(
short val1,
short val2
)
Parameters
- val1
- Type: SystemInt16
The first of two 16-bit signed integers to compare. - val2
- Type: SystemInt16
The second of two 16-bit signed integers to compare.
Return Value
Type:
Int16Parameter
val1 or
val2, whichever is smaller.
See Also