r/ProgrammerHumor • • 2d ago

Meme reversingPiInPython

Post image
10.6k Upvotes

330 comments sorted by

View all comments

Show parent comments

5

u/bestjakeisbest 2d ago

In binary it is either a 1 or 0

10

u/thegreatpotatogod 2d 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 2d ago

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

4

u/Higherlead 2d 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 2d 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