Hi, I hope someone is able to help me.
I am looking at quantitative data which may be anticipatory or reactive which will be represented by the direction of the values (ie positive or negative values). I need to know which result has the smallest value (it doesn't matter whether the sign is positive or negative). However, this is where it gets difficult... I could normally use the ABS function, but that changes the sign, however I still need to know if it is anticipatory or reactive (I still need to know the sign). Finally, it must also be able to consider 'zero'... ie if the particular array has the value zero then this would be the smallest.
So, for example if I have the following values:
-385, -265, 54, -145, -34, 68, -333 then the smallest value (independent of the sign is -34) and I need it to return that value.
If zero was included in the above array, then I would like it to return '0' as the smallest value.
I hope this makes sense and would appreciate any help you can provide.
regards
Ryan
I am looking at quantitative data which may be anticipatory or reactive which will be represented by the direction of the values (ie positive or negative values). I need to know which result has the smallest value (it doesn't matter whether the sign is positive or negative). However, this is where it gets difficult... I could normally use the ABS function, but that changes the sign, however I still need to know if it is anticipatory or reactive (I still need to know the sign). Finally, it must also be able to consider 'zero'... ie if the particular array has the value zero then this would be the smallest.
So, for example if I have the following values:
-385, -265, 54, -145, -34, 68, -333 then the smallest value (independent of the sign is -34) and I need it to return that value.
If zero was included in the above array, then I would like it to return '0' as the smallest value.
I hope this makes sense and would appreciate any help you can provide.
regards
Ryan