JCL Help:Min@Byte@Byte

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the smaller of two values.


Pascal

 function Min(const B1: Byte; const B2: Byte): Byte; overload;
function Min(const B1: Shortint; const B2: Shortint): Shortint; overload;
function Min(const B1: Smallint; const B2: Smallint): Smallint; overload;
function Min(const B1: Word; const B2: Word): Word; overload;
function Min(const B1: Integer; const B2: Integer): Integer; overload;
function Min(const B1: Cardinal; const B2: Cardinal): Cardinal; overload;
function Min(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 smaller of the two values.


Description

Min returns the smaller of the two passed values.


See Also

Max


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