Kilo / Mega / Tera Byte Representation

I was a bit confused about representing different units of bytes.

It is accepted that 1 byte = 8 bits.

However, in many sources I have seen that

1 kiloByte = 2 ^ 10 bytes = 1024 bytes

and

1 kilobyte = 1000 bytes

Doesn't this contradict , since in both cases it is indicated that 1 byte is 8 bits ...?

Different sources claim different reasons for these different views, so I'm not sure which is the most important / real reason for this rather confusing difference in presentation.

Can someone explain and clarify?

+5
source share
3 answers

It is accepted that 1 byte = 8 bits

However, in many sources I have seen that

1 kiloByte = 2 ^ 10 bytes = 1024 bytes

and

1 kilobyte = 1000 bytes

, , : " 1024 1000 ?".

, , 1 8 ...?

.

, . SI () 1000 , k. k 1000, .

, , 2 10 1024, 1000. , 1024. , , 1024 2 ( 1000 2) .. giga, tera ..

1000 1024 , , , . , = 1024, - . IEC : 1024 = kibi, 1024 2= mebi, 1024 3= gibi ..

, , kilo = 1024 SI kilo = 1000. kilo = 1024 , kibi = 1024. , // .. (, "512 " 536,9 .)

Btw, ; , .

:

+8

, . , :

" , , , 2. 10, 1024 = 2 ^ 10.

, , .

0

, , , 1 1024 1000 . . ( ) 1000, , .

The problem arises when you think of binary (base 2) or base 10. Base 10 would you use 1000, base 2, 1024.

-1
source

All Articles