The comparer can compare the predetermined threshold with an absolute value of the third value if the third value is 0, a difference between the third value and the first value if the third value is equal to the first value, and a difference between the third value and the second value if the third value is equal to the second value.