Home  |  Delphi .net Home  |  System.Math  |  Min Method

Min
Method
Returns the smallest of the two given numbers
 Math Class System NameSpace
 CF 1 Function Min ( ValueA : Byte; ValueB : Byte ) : Byte; Static; CF 2 Function Min ( ValueA : SByte; ValueB : SByte ) : SByte; Static; CF 3 Function Min ( ValueA : SmallInt; ValueB : SmallInt ) : SmallInt; Static; CF 4 Function Min ( ValueA : ShortInt; ValueB : ShortInt ) : ShortInt; Static; CF 5 Function Min ( ValueA : Integer; ValueB : Integer ) : Integer; Static; CF 6 Function Min ( ValueA : Int64; ValueB : Int64 ) : Int64; Static; CF 7 Function Min ( ValueA : UInt64; ValueB : UInt64 ) : UInt64; Static; CF 8 Function Min ( ValueA : Cardinal; ValueB : Cardinal ) : Cardinal; Static; CF 9 Function Min ( ValueA : Decimal; ValueB : Decimal ) : Decimal; Static; CF 10 Function Min ( ValueA : Single; ValueB : Single ) : Single; Static; CF 11 Function Min ( ValueA : Double; ValueB : Double ) : Double; Static; CF 12 Function Min ( ValueA : Word; ValueB : Word ) : Word; Static;
CF : Methods with this mark are Compact Framework Compatible
 Description Returns the smallest of ValueA and ValueB numbers. Notes Static methods are not methods of an object - they are simply class functions or procedures available at any time. Microsoft MSDN Links System System.Math Author links Buy Website Traffic at  Buywebsitetrafficexperts.com  Buy Proxies at Buyproxies.io

 A simple example program Project1; {\$APPTYPE CONSOLE} var   result : Integer; begin   result := System.Math.Min(1, 2);   Console.WriteLine('Min(1, 2) = {0}', result.ToString);   Console.ReadLine; end. Min(1, 2) = 1