JCL Help:Max@Byte@Byte

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the larger of two values.


Pascal

 function Max(const B1: Byte; const B2: Byte): Byte; overload;
function Max(const B1: Shortint; const B2: Shortint): Shortint; overload;
function Max(const B1: Smallint; const B2: Smallint): Smallint; overload;
function Max(const B1: Word; const B2: Word): Word; overload;
function Max(const B1: Integer; const B2: Integer): Integer; overload;
function Max(const B1: Cardinal; const B2: Cardinal): Cardinal; overload;
function Max(const B1: Int64; const B2: Int64): Int64; overload;


Parameters

Parameters Description
const B1: Byte The first value.
const B2: Byte The second value.


Return Value

The larger of the two values.


Description

Max returns the larger of the two passed values.


See Also

Min


About

Unit

JclLogic


Donator

ESB Consultancy


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page