Both -2 and 2 are the same distance away from zero, and they are, as you said, the closest to zero in that list. In this situation, there are two solutions. If the problem asks for only one solution, then either the problem statement itself has a method of choosing between them, or you can just pick the one you want.