Skip to main content
Solved

Absolute Max Value of list

  • November 22, 2017
  • 3 replies
  • 211 views

Forum|alt.badge.img

Hi All,

How do i find the abs MAX value of a list.? (ie MAX(ABS(list[-4,-2,1,3))) would return 4

Thanks

Best answer by erik_jan

Using the ExpressionEvaluator transformer:

Results in the value 4.

View original
Did this help you find an answer to your question?

3 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • Best Answer
  • November 22, 2017

Using the ExpressionEvaluator transformer:

Results in the value 4.


Forum|alt.badge.img
  • Author
  • November 22, 2017
erik_jan wrote:

Using the ExpressionEvaluator transformer:

Results in the value 4.

I get it now!

 

get the max and min using the range extractor then get the max of the max and abs(min)

 

 

Thanks Again

 

 

Steve

 

 


erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • November 22, 2017

Using a list this is the better way:

Sort the list and use the first (0) and last (_element_count) to do the calculation.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings