有无MinMax函数?若参数小于Min值取Min,若大于Max值则取Max

lovelypengpeng 2003-04-11 01:19:35
help
...全文
113 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
guestman 2003-04-11
  • 打赏
  • 举报
回复
Returns the lesser of two numeric values.

Unit

Math

Category

Arithmetic routines

function Min(A,B: Integer): Integer; overload;
function Min(A,B: Int64): Int64; overload;
function Min(A,B: Single): Single; overload;
function Min(A,B: Double): Double; overload;
function Min(A,B: Extended): Extended; overload;

Description

Call Min to compare two numeric values. Min returns the smaller value of the two.


Returns the greater of two numeric values.

Unit

Math

Category

Arithmetic routines

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

Description

Call Max to compare two numeric values. Max returns the greater value of the two.

828

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧