Changed double to float, return value findInArray