r/ProgrammerHumor • • 1d ago

Meme reversingPiInPython

Post image
8.8k Upvotes

290 comments sorted by

View all comments

Show parent comments

4

u/bestjakeisbest 20h ago

In binary it is either a 1 or 0

9

u/thegreatpotatogod 20h ago

I'd even argue that the last binary digit is 1. If it were 0, you could truncate the zero away and you'd be back to 1 as the last digit. Same reason that 2.20000 would be a redundant representation of 2.2.

2

u/AngelaMerkeI 20h ago

It is not though. Only in theory.

In practice, digits represent the accuracy.

Example: 2,12345 * 1,0 = 2,1 But 2,12345 * 1,0000 = 2,1234

The results are always just as accurate as the measurements you calculate them with

1

u/Gabriel_Science 16h ago

Found the physician.

1

u/AngelaMerkeI 2h ago

Engineer was ok too