Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Really 1 KB (KiloByte) equals 1024 bytes?

Until now I believed that 1024 bytes equals 1 KB (kilobyte) but I was reading on the internet about decimal and binary system.

enter image description here

So, actually 1024 bytes = 1 KB would be the correct way to define or simply there is a general confusion?

like image 307
SamYan Avatar asked Nov 06 '13 18:11

SamYan


People also ask

Is 1KB equal to 1024 bytes?

Therefore 1KB must equal 1024 Bytes, 1MB must equal 1048576 Bytes (1024x1024) etc. Any non-computing reference to Kilo/Mega etc.

Why is 1KB equal to 1024 bytes?

The closest base number to a thousand (kilo) is 1024, hence it was abbreviated to k, so 1024 bytes = 1kb.

Is 1 MB equal to 1024 bytes?

Answer: (2) 1024 Kilo Bytes The data will be transformed to its binary form.

Is a kilobyte 1000 bytes or 1024?

So in Decimal SI (base 10), 1 Kilobyte is equivalent to 1000 bytes. On the other hand in Binary (base 2) system, 1 Kilobyte is equal to 1024 bytes. The unit symbol of Kilobyte is KB. A Kilobyte is actually equal to 210 bytes, which makes it equivalent to 1024 bytes in practical information technology.


2 Answers

What you are seeing is a marketing stunt. Since non-technical people don't know the difference between Metric Meg, Gig, etc. against the binary Meg, Gig, etc. marketers for storage will use the Metric calculation, thus 1000 Bytes == 1 KiloByte.

This can cause issues with development or highly technical people so you get the idea of a binary Meg, Gig, etc. which is designated with a bi instead of the standard combination (ex. Mebibyte vs Megabyte, or Gibibyte vs Gigabyte)

like image 77
RocketSpock Avatar answered Sep 30 '22 08:09

RocketSpock


There are two ways to represent big numbers: You could either display them in multiples of 1000 (base 10) or 1024 (base 2). If you divide by 1000, you probably use the SI prefix names, if you divide by 1024, you probably use the IEC prefix names. The problem starts with dividing by 1024. Many applications use the SI prefix names for it and some use the IEC prefix names. But it is important how it is written:

Using IEC standard:
1 KiB = 1,024 bytes (Note: big K)
1 MiB = 1,024 KiB = 1,048,576 bytes

Using SI standard:
1 kB = 1,000 bytes (Note: small k)
1 MB = 1,000 kB = 1,000,000 bytes

Source: ubunty units policy: https://wiki.ubuntu.com/UnitsPolicy

like image 45
darpet Avatar answered Sep 30 '22 08:09

darpet