Function
EN
Version 1.90
@MaxPos
Float
List
Mathematics
Misc
NUMBER
Syntax
@MaxPos(FN1);
@MaxPos(FNLIST1);
@MaxPos(FN1;FROM2;TO3);
@MaxPos(FNLIST1;FROM2;TO3);
Description
Returns the position of the first occurrence of the largest element in FN/FNLIST FN1/FNLIST1. By specifying FN FROM2 and FN TO3 a search range can be defined. If it exceeds the list size, it is reduced to the maximum possible size.
Example: @MaxPos(FN1)
FN1:=10;
@MaxPos(FN1);
returns 1
Example: @MaxPos(FNLIST1)
FNLIST1:=14:10:34:18:25:34;
@MaxPos(FNLIST1);
returns 3
Example: @MaxPos(FN1;FROM2;TO3)
FN1:=10;
FROM2:=1;
TO3:=2;
@MaxPos(FN1;FROM2;TO3);
returns 1
Example: @MaxPos(FNLIST1;FROM2;TO3)
FNLIST1:=14:10:34:18:25;
FROM2:=4;
TO3:=5;
@MaxPos(FNLIST1;FROM2;TO3);
returns 5
Note : This text was machine-translated and may contain inaccuracies.
