r/ProgrammerHumor • • 19d ago

Meme reversingPiInPython

Post image
14k Upvotes

383 comments sorted by

View all comments

Show parent comment

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