Common units of data in computers:
Bits (bits): The smallest data unit of computers, each bit can only be 0 Or 1
byte (Byte): 8 binary numbers constitute a byte, which is the basic unit of storage space. One English letter occupies one byte. In different encoding sets, Chinese The occupancy is different. In GBK, one Chinese character occupies two bytes; in UTF-8, one Chinese character occupies 3 bytes.
KB: 1KB represents 1024 bytes
Note: The conversion between bytes and KB often appears in the question. Remember: 1KB = 1024 bytes
MB: is what we call megabytes in our daily life, and is usually roughly used in the calculation process. It is recorded as 1MB=10^6 (10 to the 6th power) bytes; it is actually 1024^2
The above is the detailed content of What are the common units of data in computers?. For more information, please follow other related articles on the PHP Chinese website!