Avoid creating larger numbers when comparing.

Instead of doing, say, compare (x * 10 ^ (delta-digits)) y, one
can compare (first delta-digits x) y and, when this matches,
we know that the final digits of y were 0 anyway.