r/ProgrammerHumor • • 18d ago

Meme reversingPiInPython

Post image
14k Upvotes

383 comments sorted by

View all comments

257

u/Yumikoneko 18d ago

1, there, I did it. It's in base-Ο€ for efficiency.

64

u/HorrorMotor2051 18d ago

pi in base-pi would be 10, no? So backwards it should be 01

54

u/PuzzleheadedRoyal480 18d ago

Leading zeroes famously don’t matter

19

u/HorrorMotor2051 18d ago

Well it's not a leading zero, it's a trailing zero

12

u/HorrorMotor2051 18d ago

Or rather I should say: In this case the leading zero does matter, because 1 is not 10 spelled backwards. It simply is not. 1 is 1 spelled backwards. 01 is 10 spelled backwards.

1

u/TimSylvester_ 18d ago

Uh wow, ok, then how do you account for all the zeroes leading the United States these days?

1

u/Nowin 18d ago

In 10-adic numbers they do. Adding a leading 0 multiplies everything by 10.

2

u/Yumikoneko 18d ago

Yeah I don't know how I missed that, shame on me. In my defense, I was barely out of bed.

6

u/glacierre2 18d ago

Came to say this.

5

u/sten_zer 18d ago

β˜πŸ»πŸ‘πŸ»πŸ‘πŸ»πŸ‘πŸ»