Share via


Math.Min Method

Returns the smaller of two integers that have been compared with one another.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

 public static int Min (
         int val1,
         int val2
)

Parameters

  • val1
    The first of two integers you want to compare.
  • val2
    The second of two integers you want to compare.

Return Value

The smaller of the two compared integers.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

Math Class
Math Members
System Namespace