MaxXYZ Routines

Unit
QESBPCSMath

Overloaded Variants
Function MaxXYZ(const X, Y, Z: Byte): Byte;
Function MaxXYZ(const X, Y, Z: ShortInt): ShortInt;
Function MaxXYZ(const X, Y, Z: Word): Word;
Function MaxXYZ(const X, Y, Z: SmallInt): SmallInt;
Function MaxXYZ(const X, Y, Z: LongWord): LongWord;
Function MaxXYZ(const X, Y, Z: LongInt): LongInt;
Function MaxXYZ(const X, Y, Z: Int64): Int64;
Function MaxXYZ(const X, Y, Z: Extended): Extended;
Function MaxXYZ(const X, Y, Z: Double): Double;
Function MaxXYZ(const X, Y, Z: Single): Single;

Declaration
Function MaxXYZ(const X, Y, Z: Byte): Byte;

Implementation

function MaxXYZ (const X, Y, Z: Byte): Byte;
begin
     Result := X;
     if Y > Result then
          Result := Y;
     if Z > Result then
          Result := Z;
End;

Declaration
Function MaxXYZ(const X, Y, Z: ShortInt): ShortInt;

Implementation

function MaxXYZ (const X, Y, Z: ShortInt): ShortInt;
begin
     Result := X;
     if Y > Result then
          Result := Y;
     if Z > Result then
          Result := Z;
End;

Declaration
Function MaxXYZ(const X, Y, Z: Word): Word;

Implementation

function MaxXYZ (const X, Y, Z: Word): Word;
begin
     Result := X;
     if Y > Result then
          Result := Y;
     if Z > Result then
          Result := Z;
End;

Declaration
Function MaxXYZ(const X, Y, Z: SmallInt): SmallInt;

Implementation

function MaxXYZ (const X, Y, Z: SmallInt): SmallInt;
begin
     Result := X;
     if Y > Result then
          Result := Y;
     if Z > Result then
          Result := Z;
End;

Declaration
Function MaxXYZ(const X, Y, Z: LongWord): LongWord;

Implementation

function MaxXYZ (const X, Y, Z: LongWord): LongWord;
begin
     Result := X;
     if Y > Result then
          Result := Y;
     if Z > Result then
          Result := Z;
End;

Declaration
Function MaxXYZ(const X, Y, Z: LongInt): LongInt;

Implementation

function MaxXYZ (const X, Y, Z: LongInt): LongInt;
begin
     Result := X;
     if Y > Result then
          Result := Y;
     if Z > Result then
          Result := Z;
End;

Declaration
Function MaxXYZ(const X, Y, Z: Int64): Int64;

Implementation

function MaxXYZ (const X, Y, Z: Int64): Int64;
begin
     Result := X;
     if Y > Result then
          Result := Y;
     if Z > Result then
          Result := Z;
End;

Declaration
Function MaxXYZ(const X, Y, Z: Extended): Extended;

Implementation

function MaxXYZ (const X, Y, Z: Extended): Extended;
begin
     Result := X;
     if Y > Result then
          Result := Y;
     if Z > Result then
          Result := Z;
End;

Declaration
Function MaxXYZ(const X, Y, Z: Double): Double;

Implementation

function MaxXYZ (const X, Y, Z: Double): Double;
begin
     Result := X;
     if Y > Result then
          Result := Y;
     if Z > Result then
          Result := Z;
End;

Declaration
Function MaxXYZ(const X, Y, Z: Single): Single;

Implementation

function MaxXYZ (const X, Y, Z: Single): Single;
begin
     Result := X;
     if Y > Result then
          Result := Y;
     if Z > Result then
          Result := Z;
End;


HTML generated by Time2HELP
http://www.time2help.com