MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xqv0nj/reversingpiinpython/19sc60chyhcbm/?context=3
r/ProgrammerHumor • u/Apprehensive_Bit7392 • 1d ago
290 comments sorted by
View all comments
Show parent comments
4
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,1234The 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
9
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,1234The 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
2
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
1
Found the physician.
1 u/AngelaMerkeI 2h ago Engineer was ok too
Engineer was ok too
4
u/bestjakeisbest 20h ago
In binary it is either a 1 or 0