Math.Min
using System; public class MainClass { public static void Main() { int i = 5; Console.WriteLine("Math.Min(1,2) = {0}", Math.Min(i, 2.5F)); } }