The invention relates to computing. The purpose of the invention is to increase the reliability of the comparison result. The device contains five triggers 6-10, three elements AND-NOT 1, 2, 11, element NOT 5 and two elements AND-OR 3, 4, the numbers being compared are received in a sequential code with the most significant bits ahead.