r/ProgrammerHumor • • 18d ago

Meme reversingPiInPython

Post image
14k Upvotes

383 comments sorted by

View all comments

2

u/hacksoncode 18d 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.

0

u/MattieShoes 18d ago edited 18d 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 18d 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 18d 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