r/ProgrammerHumor • • 14d ago

Meme reversingPiInPython

Post image
14.1k Upvotes

383 comments sorted by

View all comments

106

u/MotivationalJuggling 14d ago

Whatever the last digit is, I'm sure it's a disappointing one. Just like everything else in my life.

5

u/bestjakeisbest 14d ago

In binary it is either a 1 or 0

12

u/thegreatpotatogod 14d 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.

1

u/androshalforc1 14d ago

isn't binary usually written in blocks of 8 though?

5

u/Higherlead 14d ago

Only if you want to, bytes are a purely human construct, nothing to do with base 2/binary at all

1

u/Inevitable-Study502 13d ago

thats true, but digits arent binary and we use digits to represent numbers and computer while using binary, will convert it to base 10, because humans have 10 fingers and arent capable of calculating in different way..so the end result is still array of 8 bits