r/computerscience • u/userlivedhere • Oct 08 '25
how 256h = 256 bytes?
apologies if it sounds dumb but let me just say my confusion the thing is 100 h = 256d and 256 d = 100000000 bits so 1 byte = 8 bits so 100000000/8 = 125 ,0000 bytes in 100 h so how 256h = 256 bytes ? clear me out if i am wrong
Edit : I mistakenly wrote the title wrong . It's how 100h =256 byte
0
Upvotes
View all comments
Show parent comment
5
u/WittyStick Oct 08 '25
You're trying to divide a base 2 number by a base 10 number.
The number
8in binary is1000b. If you divide100000000b/1000b, you get10000b, which is 32 in decimal, and32*8 = 256.