System.Math.Max

From RAD Studio API Documentation
Revision as of 08:23, 25 September 2017 by L10nBot (talk | contribs) (updated links to redirects)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Delphi

function Max(const A, B: Integer): Integer;
function Max(const A, B: Int64): Int64;
function Max(const A, B: UInt64): UInt64;
function Max(const A, B: Single): Single;
function Max(const A, B: Double): Double;
function Max(const A, B: Extended): Extended;

C++

extern DELPHI_PACKAGE int __fastcall Max(const int A, const int B)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Math.pas
System.Math.hpp
System.Math System.Math

Description

Returns the greater of two numeric values.

Call Max to compare two numeric values. Max returns the greater value of the two input arguments A and B.

In Delphi you can use up to six different data types for B. Note that the data type of B determines the data type of the returned value.

See Also

Retrieved from "https://docwiki.embarcadero.com/Libraries/Tokyo/e/index.php?title=System.Math.Max&oldid=782560"