Comparing numbers with different notations