r/ProgrammerHumor • • 18d ago

Meme reversingPiInPython

Post image
14k Upvotes

383 comments sorted by

View all comments

Show parent comment

4

u/Chronomechanist 18d ago

What's the last digit of 1.4? Is it 4? Or 0? because

1.4 = 1.40

So is it 4 or 0? It's 4. If Pi has a last digit, you could add infinite 0s after it, just as you can with every number.

1

u/rosuav 18d ago

If pi has a last digit, it isn't pi. You might as well ask what 6 modulo 2 would be, if 6 were an odd number.

0

u/SampleOfFruits 18d ago

What’s the last digit of Pi, if we arbitrarily define the last digit as being in position 32?

Is it 0, or is it undefined?

3

u/Chronomechanist 18d ago

That's not what "last digit" means. That's how many significant figures you want.

0

u/SampleOfFruits 18d ago

Pi is irrational, so there is no last digit. The only way to have one is to arbitrarily define it.

3

u/Chronomechanist 18d ago

And at last you have discovered the joke.

4

u/SampleOfFruits 18d ago

I got woooshed

1

u/Look_its_Rob 18d ago

Good sport.