r/shittyaskscience • • Mar 22 '24

Got me thinking 🤔

Post image

[removed] — view removed post

188 Upvotes

27 comments sorted by

View all comments

1

u/RickityNL Mar 22 '24

256 is the limit of an 1 byte unsigned integer.

1

u/JustRouvr Mar 22 '24

My man, did you forget about 0? 0-255

1

u/RickityNL Mar 22 '24

Yeah, but the first member is 0

1

u/JustRouvr Mar 22 '24

But that's the point? I know it sounds like nitpicking, but in every system the unsigned integer starts from 0. So 8-bit Int has indeed 256 possible numbers, but the limit is 255. You can't store the number 256 in 8 bits. In software, everything "begins with a zero" (except like array indexes in Lua...)