FIXED Level = Read (&Level, Settings, CS_LEVEL);

INT N, Rc = NearestIn (&N, Array, Length, (FIXED X) { // Level 
  return Abs (X - Level);
});