Representation of a Kilo/Mega/Tera Byte

前端 未结 3 1500
离开以前
离开以前 2021-01-13 09:22

I was getting a little confused with the representation of different units of bytes.

It is accepted throughout that 1 byte = 8 bits.

However, in a lot of so

3条回答
  •  终归单人心
    2021-01-13 09:55

    When you talk about data information in computer science, you always have to calculate the result by a power of two. See what wikipedia says:

    "In computing, a binary prefix is a specifier or mnemonic that is prepended to the units of digital information, the bit and the byte, to indicate multiplication by a power of 2. In practice the powers used are multiples of 10, so the prefixes denote powers of 1024 = 2^10."

    Sometimes people use to round it as you have mentioned, but it is a bad use of it.

提交回复
热议问题