RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.Min Function

Returns the lesser of two numeric values (Delphi only).

Pascal
function Min(const A: Integer; const B: Integer): Integer; overload;
function Min(const A: Int64; const B: Int64): Int64; overload;
function Min(const A: Single; const B: Single): Single; overload;
function Min(const A: Double; const B: Double): Double; overload;
function Min(const A: Extended; const B: Extended): Extended; overload;
C++
int Min(const int A, const int B);
Int64 Min(const Int64 A, const Int64 B);
Single Min(const Single A, const Single B);
Double Min(const Double A, const Double B);
Extended Min(const Extended A, const Extended B);

Call Min to compare two numeric values in Delphi. Min returns the smaller value of the two. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!