How to get a maximum value from array list?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-09-08 03:06 PM
2015-09-08
03:06 PM
I have generated one dimendional array list, which has a different number of variables , depent from the case.
How to get a maximum value from array list?
I tried different examples, but none of them work:
PARAMETERS max_value_from_array = MAX(array)
or
PARAMETERS max_value_from_array = MAX(array[])
2 REPLIES 2
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-09-09 02:08 PM
2015-09-09
02:08 PM
Hi,
To get the maximum value from an array you have to use the PUT and GET commands, eg.
PUT(array)
PARAMETERS max_value_from_array = MAX(GET(NSP))
Wesley
To get the maximum value from an array you have to use the PUT and GET commands, eg.
PUT(array)
PARAMETERS max_value_from_array = MAX(GET(NSP))
Wesley
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-09-10 11:15 AM
2015-09-10
11:15 AM
Thanks for the advice.
Now my code works correctly.
Now my code works correctly.