Max function
Prototype: |
function Max(const X, Y: extended): extended; |
|
Description: |
The Max function returns the higher value of parameters X and Y. |
|
Syntax: |
Max(X, Y); / variable:= Max(X, Y); |
|
Part |
Description |
|
variable |
A variable declared as extended |
|
X |
A parameter declared as extended |
|
Y |
A parameter declared as extended |
|
Return value: |
higher value of two parameters |
|
Example:
var
x,y,z : extended;
begin
x:= 1;
y:= -3;
z:= Max(x,y);
ShowMessage(FloatToStr(z));
end.
// Next examples: Max(0, 19) = 19
// Max(-3.2, -9.47) = -3.2
// Max(12, -8) = 12
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