Understanding string comparison of numbers

Viewed 32

Why does '120' > '49' evaluate to False, even though 120 is greater than 49?

How does the comparison work? Is it related to ASCII value, summation or multiplication?

0 Answers
Related