Min function
Prototype: |
function Min(const X, Y: extended): extended; |
|
Description: |
The Min function returns the lower value of parameters X and Y. |
|
Syntax: |
Min(X, Y); / variable:= Min(X, Y); |
|
Part |
Description |
|
variable |
A variable declared as extended |
|
X |
A parameter declared as extended |
|
Y |
A parameter declared as extended |
|
Return value: |
lower value of two parameters |
|
Example:
var
x,y,z : extended;
begin
x:= 1;
y:= 3;
z:= Min(x,y);
ShowMessage(FloatToStr(z));
end.
// Next examples: Min(0, 19) = 0
// Min(-3.2, -9.47) = -9.47
// Min(12, -8) = -8
Output in Field-Map Data Collector:

See also:
Power; Round; RoundTo, RoundVariant; Round2int, Cos; ArcCos; ArcCosH; Sin; ArcSin; ArcSinH; ArcTan; ArcTan2; ArcTanH; CosH; SinH; Tan; TanH; Random; RandomRange; Randomize; Floor; Ceil; Int; Frac; Log10; Ln; Exp; Abs; Min; Max; Odd; SecondsBetween;CompareValue; SameValue; Trunc
© 2024 IFER-Monitoring and Mapping Solutions