# Find highest value in an array

**URL:** <https://forum.kirupa.com/t/find-highest-value-in-an-array/268792>\
**Category:** flash\
**Created:** [August 18, 2008, 9:23pm UTC](https://forum.kirupa.com/t/find-highest-value-in-an-array/268792 "2008-08-18T21:23:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixel\_chick](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@pixel\_chick](https://forum.kirupa.com/u/pixel_chick)\
**Post date:** [August 18, 2008, 9:23pm UTC](https://forum.kirupa.com/t/find-highest-value-in-an-array/268792/1 "2008-08-18T21:23:02Z")

</div>

Can anyone tell me if there is a way to find the highest number in an array?

numbersArr(314,2613,221,103,77);

is there a way to loop though this, compare all the numbers to each other and find the highest value while keeping the array in order?

Thank you
