Forgive me if this is a novice question. I'm not a mathematics student, but I'm interested in mathematical philosophy.
Georg Cantor made an argument that the set of rational numbers is countable by showing a correspondence to the set of natural numbers. He did this by scanning rational numbers in a zigzag scheme starting at the top left corner of a 2D table of integers representing the numerator vs. denominator of every rational number. He also proved that the set of real numbers is uncountable through his famous diagonalization argument.
My question is, why can't real numbers also be counted in the same fashion by placing them in a 2D table of integers representing the whole vs. decimal parts of a real number i.e. like this:
0 1 2 3 4 ...
0 0.0 0.1 0.2 0.3 0.4 ...
1 1.0 1.1 1.2 1.3 1.4 ...
2 2.0 2.1 2.2 2.3 2.4 ...
3 3.0 3.1 3.2 3.3 3.4 ...
4 4.0 4.1 4.2 4.3 4.4 ...
. . . . . . .
. . . . . . .
. . . . . . .
and scanning them in a zigzag scheme starting at the top left corner? Negative reals can also be treated the same way as negative rationals (e.g. by pairing even natural numbers with positive real numbers, and odd natural numbers with negative real numbers).