Get the closest number out of an array