comparison of rational numbers