# Find largest integer in array

**URL:** <https://forum.kirupa.com/t/find-largest-integer-in-array/240414>\
**Category:** Uncategorized\
**Created:** [October 2, 2007, 7:39pm UTC](https://forum.kirupa.com/t/find-largest-integer-in-array/240414 "2007-10-02T19:39:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dru\_nasty](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dru\_nasty](https://forum.kirupa.com/u/dru_nasty)\
**Post date:** [October 2, 2007, 7:39pm UTC](https://forum.kirupa.com/t/find-largest-integer-in-array/240414/1 "2007-10-02T19:39:10Z")

</div>

I’ve got an array:

```auto

//for instance
distances[24,30,3];

```

How can I find the largest integer in it? Basically want to use it as “top score” kind of thing.
