It’s not as simple as that. A lot of “computer things” are not exact powers of two. A prominent example would be HDDs.
Comment on Why a kilobyte is 1000 and not 1024 bytes
Lmaydev@programming.dev 1 year agoPower of 2 makes more sense to the computer. 1000 makes more sense to people.
wischi@programming.dev 1 year ago
Lmaydev@programming.dev 1 year ago
In terms of storage 1000 and 1024 take the same amount of bytes. So from a computer point of view 1024 makes a lot more sense.
It’s just a binary Vs decimal thing. 1000 is not nicely represented in binary the same 1024 isn’t in decimal.
abhibeckert@lemmy.world 1 year ago
In terms of storage 1000 and 1024 take the same amount of bytes.
What? No. A terabyte in 1024 units is 8,796,093,022,208 bits. In 1000 units it’s 8,000,000,000,000 bits.
The difference is substantial with larger numbers.
Lmaydev@programming.dev 1 year ago
Both require the same amount of bits again
Australis13@fedia.io 1 year ago
Of course. The thing is, though, that if the units had been consistent to begin with, there wouldn't be anywhere near as much confusion. Most people would just accept MiB, GiB, etc. as the units on their storage devices. People already accept weird values for DVDs (~4.37GiB / 4.7GB), so if we had to use SI units then a 256GiB drive could be marketed as a ~275GB drive (obviously with the non-rounded value in the fine print, e.g. "Usable space approx. 274.8GB").
wewbull@feddit.uk 1 year ago
They were consistent until around 2005 (it’s an estimate) when drives got large enough where the absolute difference between the two forms became significant. Before that everyone is computing used base 2 prefixes.
I bet OP does too when talking about RAM.