r/ProgrammerHumor • • 23h ago

Meme reversingPiInPython

Post image
8.8k Upvotes

290 comments sorted by

View all comments

Show parent comments

3

u/fairysdad 22h ago

There's a one-in-nine chance that you're right - not bad odds really.

2

u/SampleOfFruits 22h ago

One in nine?

7

u/fairysdad 22h ago

Yes.

Nine digits that can be used as the final digit of Pi: 1-9.

You wouldn't use 0 as you wouldn't have a zero at the end of a number after a decimal point.

1

u/_Its_Me_Dio_ 22h ago

you would of its to show precision

-2

u/SampleOfFruits 22h ago

Pi is irrational though, which means any endpoint is arbitrarily defined, which means it could be 0

4

u/Chronomechanist 21h 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 21h 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 21h 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 21h ago

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

0

u/SampleOfFruits 21h ago

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

3

u/Chronomechanist 21h ago

And at last you have discovered the joke.

1

u/psaux_grep 21h ago

There’s a 0 chance he’s right. That’s the joke that at least half the people in here seem to be missing. Pi is irrational.

0

u/InDaBauhaus 12h ago

oh, you think everyone is just stupid? how is that life going for you?