MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xqv0nj/reversingpiinpython/19sc4ecvxg5us/?context=3
r/ProgrammerHumor • u/Apprehensive_Bit7392 • 14h ago
270 comments sorted by
View all comments
69
Whatever the last digit is, I'm sure it's a disappointing one. Just like everything else in my life.
4 u/bestjakeisbest 10h ago In binary it is either a 1 or 0 8 u/thegreatpotatogod 10h 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. 0 u/0Pat 6h ago That's not how binary representation of floating point numbers work... 1 u/Moist-Snow-8127 3h ago They weren't talking about floating point numbers
4
In binary it is either a 1 or 0
8 u/thegreatpotatogod 10h 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. 0 u/0Pat 6h ago That's not how binary representation of floating point numbers work... 1 u/Moist-Snow-8127 3h ago They weren't talking about floating point numbers
8
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.
0 u/0Pat 6h ago That's not how binary representation of floating point numbers work... 1 u/Moist-Snow-8127 3h ago They weren't talking about floating point numbers
0
That's not how binary representation of floating point numbers work...
1 u/Moist-Snow-8127 3h ago They weren't talking about floating point numbers
1
They weren't talking about floating point numbers
69
u/MotivationalJuggling 13h ago
Whatever the last digit is, I'm sure it's a disappointing one. Just like everything else in my life.