RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.Max Function

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

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

In Delphi, call Max to compare two numeric values. Max returns the greater value of the two. 

 

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