MB (megabyte) or GB (gigabyte)? Do you know the unit of data?

MB (megabyte), GB (gigabyte). These are units called “byte” that we often see in the computer world.

What do these represent?

What is “byte”?

Byte is a unit that represents the amount of data in a computer.

著者
著者

It is used for PC storage and smartphone data traffic.

In the computer world, all information is represented in binary (0 or 1). This is because power off is considered as 0 and power on is considered as 1. Based on this idea, the notation of each unit changes every 1024 times (210 times).

It is also represented in decimal number, which is easier for the human eye to understand. In this case, there is a difference between the represented number and the actual value.

To distinguish between the two, a special prefix for binary number is defined, but it is not often used.

Below is a list of units.

UnitValue(decimal number)Unit(binary prefix)Value(binary number)
KB(kilobyte)103KiB(kibibyte)210
MB(megabyte)106MiB(mebibyte)220
GB(gigabyte)109GiB(gibibyte)230
TB(terabyte)1012TiB(tebibyte)240
PB(petabyte)1015PiB(pebibyte)250
Byte units

1 byte is equivalent to half-width character, and 2 bytes is equivalent to full-width character.

Conclusion

  • Byte is a unit that represents the amount of data in a computer.
  • It can be represented in binary number and decimal number.
  • 1 byte is equivalent to half-width character, and 2 bytes is equivalent to full-width character.