On May 22, 2023, gene heskett wrote: > On 5/22/23 15:04, to...@tuxteam.de wrote: > > On Mon, May 22, 2023 at 12:16:09PM -0400, gene heskett wrote: > > > On 5/22/23 03:32, Tim Woodall wrote: > > > > On Mon, 22 May 2023, to...@tuxteam.de wrote: > > > > > > > > number; for (human) display it is subdivided into four 8 bit chunks > > > > > (called "octets" for obvious reasons), and those octets only can > > > > > go from 0 to 255 (since 2^8 == 255). > > > > > > > > > Nit, but 2^8 is 256. > > > > > > > > . > > > The octets count from base 0 Tim. > > > > That's right, but then they go 0 .. 2^8 - 1. 2^8 is still 256, Tim does > > have a point there :-) > > > I don't see it, 255 is all 8 bits set, 256 is all 8 bits cleared and carry > set.
In "natural counting", 2^8 is 256. (1, 2, 3, 4, ... , 256). However, you're correct in that the 256 possible values for an 8-bit number in computing are 0-255. (i.e. 0 to (2^8)-1) -- |_|O|_| |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860
signature.asc
Description: PGP signature