No, you cannot except in trivial cases.
Chat with our AI personalities
200
20,000
To compare two decimals, start by comparing the digits with the highest place-value. In this case, the first digit after the decimal point. Whichever is greater, belongs to the greater number. If these digits are equal (for example, when you compare 0.15 and 0.173), compare the second digit - and continue until you find a difference.
There are several infinite series. To find PI to x digits, evaluate each term to x+2 digits until the value is 0. Then round to x digits.
Since the numbers have the same number of digits, just compare the digits one at a time, from left to right, until you find one digit that is greater in one number than in the other.