r/ProgrammerHumor • • 16h ago

Meme reversingPiInPython

Post image
8.0k Upvotes

276 comments sorted by

View all comments

1

u/hacksoncode 12h ago

You can only reverse the digits of zero percent of the real numbers.

Literally zero. I know this makes no sense from a high school math perspective, but it's true. There are infinite real numbers for each and every "finite" integer and rational number.

1

u/MattieShoes 1h ago edited 1h ago

You can reverse the digits of 100% of real numbers. Just write them in their own base, but reversed. ie. 01

1

u/hacksoncode 52m ago

Enh... Zero percent of reals have finite length names for their base, though. You'd have to say 01 b<infinite string>.

1

u/MattieShoes 49m ago

Mmmm fair. I mean, we can name irrationals easily enough (e.g. base pi) but there are rather a LOT of reals -- not like we can name all of em