Search the Community
Showing results for tags '_arraysort'.
-
Hi, How can I get the largest number to be the first number in a calculation? I did the below code but the largest number doesn't store in the $ aExtract variable. I need always a positive number from the calculation (the largest number be the first in the calculation). Can you help me with that? Thank you. $N1 = 33 $N2 = 45 Local $numberSort [2] = [$N1 , $N2] _ArraySort($numberSort, 1) _ArrayDisplay($numberSort, "Sort Descending", Default, 1) Local $aExtract = _ArrayExtract($numberSort, 0, 0, 0) _ArrayDisplay($aExtract, "Row 1 cols 1") $minus = $N1 - $N2
-
The values are: eg. 10 - 6 - 56 - 37 - 21 And i need transform the array in: 6 - 10 - 21 - 37 - 56 I try but return: 10 - 21 - 37 - 56 - 6 Note: I need the ascending. That is, 6 can not be greater than 56
- 3 replies
-
- _arraysort
- ascending
-
(and 2 more)
Tagged with: