Returns the Maximum of 2 Values.Unit
QESBPCSMath
Function MaxXY(const X, Y: Byte): Byte; |
Function MaxXY(const X, Y: ShortInt): ShortInt; |
Function MaxXY(const X, Y: Word): Word; |
Function MaxXY(const X, Y: SmallInt): SmallInt; |
Function MaxXY(const X, Y: LongWord): LongWord; |
Function MaxXY(const X, Y: LongInt): LongInt; |
Function MaxXY(const X, Y: Int64): Int64; |
Function MaxXY(const X, Y: Extended): Extended; |
Function MaxXY(const X, Y: Double): Double; |
Function MaxXY(const X, Y: Single): Single; |
Declaration
Function MaxXY(const X, Y: Byte): Byte;
X | First Value to Process. |
Y | Second Value to Process. |
Category
Arithmetic Routines for Integers
Arithmetic Routines for Floats
Implementation
function MaxXY (const X, Y: Byte): Byte;
begin
if X > Y then
Result := X
else
Result := Y;
End; |
Declaration
Function MaxXY(const X, Y: ShortInt): ShortInt;Implementation
function MaxXY (const X, Y: ShortInt): ShortInt;
begin
if X > Y then
Result := X
else
Result := Y;
End; |
Declaration
Function MaxXY(const X, Y: Word): Word;Implementation
function MaxXY (const X, Y: Word): Word;
begin
if X > Y then
Result := X
else
Result := Y;
End; |
Declaration
Function MaxXY(const X, Y: SmallInt): SmallInt;Implementation
function MaxXY (const X, Y: SmallInt): SmallInt;
begin
if X > Y then
Result := X
else
Result := Y;
End; |
Declaration
Function MaxXY(const X, Y: LongWord): LongWord;Implementation
function MaxXY (const X, Y: LongWord): LongWord;
begin
if X > Y then
Result := X
else
Result := Y;
End; |
Declaration
Function MaxXY(const X, Y: LongInt): LongInt;Implementation
function MaxXY (const X, Y: LongInt): LongInt;
begin
if X > Y then
Result := X
else
Result := Y;
End; |
Declaration
Function MaxXY(const X, Y: Int64): Int64;Implementation
function MaxXY (const X, Y: Int64): Int64;
begin
if X > Y then
Result := X
else
Result := Y;
End; |
Declaration
Function MaxXY(const X, Y: Extended): Extended;Implementation
function MaxXY (const X, Y: Extended): Extended;
begin
if X > Y then
Result := X
else
Result := Y;
End; |
Declaration
Function MaxXY(const X, Y: Double): Double;Implementation
function MaxXY (const X, Y: Double): Double;
begin
if X > Y then
Result := X
else
Result := Y;
End; |
Declaration
Function MaxXY(const X, Y: Single): Single;Implementation
function MaxXY (const X, Y: Single): Single;
begin
if X > Y then
Result := X
else
Result := Y;
End; |
HTML generated by Time2HELP
|
http://www.time2help.com