Home>Article> What is the difference between K and KB

What is the difference between K and KB

青灯夜游
青灯夜游 Original
2019-04-02 16:06:39 205622browse

The difference between K and KB: 1. The concepts of k and kb are different; 2. K means thousands, which is a numerical value, and KB is the unit, where B is bytes and KB means kilobytes.

What is the difference between K and KB

k and kb are two completely different concepts: K means thousands, which is a numerical value; and KB is a unit, where B is a byte, KB Represents kilobytes.

G, M, and K all represent numerical values, which refer to 2^10, 2^20, and 2^30 respectively; while B is 1 byte, and B, KB, MB, and GB are all units.

KB stands for kilobytes, which is a unit of information measurement that is commonly used today to indicate the storage capacity of storage media with general capacity such as memory.

Note:When talking about file size, B may sometimes be omitted, so that K and KB are the same,But in fact this is not rigorous, you need to pay attention.

Conversion between B, KB, MB, GB:

● 1B=8bit

● 1KB = 1024B = 1024 * 8bit (1KB : 1024 bytes, that is, 2^10 bytes, not 1 byte)

 ● 1MB = 1024KB (1MB: 2^20 bytes)

 ● 1GB = 1024MB

bit(binary digit): A bit is the smallest unit of computer data. The value of the bit will only be 0 or 1. Although computers also provide bit judgment and operations, computer instructions are generally in bytes. In most computer systems, eight bits are a byte. The value of a bit is usually measured by whether the storage capacitor is charged.

The above is the entire content of this article, I hope it will be helpful to everyone's study. For more exciting content, you can pay attention to the relevant tutorial columns of the PHP Chinese website! ! !

The above is the detailed content of What is the difference between K and KB. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn