Comparison of numbers with exponents