Mega mean 1024 of something right?
Comment on Why a ton, and not a megagram?
SkinnyTimmy@lemm.ee 1 year ago
Also, same issue as with MB and mb, you might confuse megagram with milligram
Deuces@lemmy.world 1 year ago
ComradeKhoumrag@infosec.pub 1 year ago
Mega is a million. Kilo is a thousand. 1024 in kilobytes comes from powers of 2 which are more natural in addressing computer memory
Synthead@lemmy.world 1 year ago
And you might confuse MB, megabytes, with MiB, mebibytes. MB s typically used to measure storage, and MiB typically used to measure data. There’s 1000 bytes in a kilobyte, and 1024 bytes in a kibibyte.
stingpie@lemmy.world 1 year ago
I still use mb and kb as 1024 instead of 1000, because I prefer to not have units switched around from under me. 2^16 will always address 64kb, not 65.
Synthead@lemmy.world 1 year ago
This error is so common that most folks will know what you mean. It’ll only really get you in trouble when you’re accurately comparing sizes of storage and data. There’s a good chance it won’t really matter unless you’re working code.
This is also why a “2 TB” hard drive is “smaller than 2 TB.” 2 terabytes is 1.819 tebibytes. Even Windows will call it TB and terabyte, so people have often carried a conspiracy theory that drive manufacturers “short you,” or that the missing data somehow has to do with enormous file system metadata.
stingpie@lemmy.world 1 year ago
There are actually two standards here. Kibibytes was introduced later as a way to reduce confusion cause by the uninitiated thinking the JEDEC standard refered to powers of ten instead of two. That’s why I’m saying that 64 kilobytes is equal to 2^16 bytes, because that’s what the original standard was.