Computer common mathematical hex, binary conversion, data units of measurement

Common binary mathematics

  1. Binary: base is 0 and 1, every binary 1
  2. Octal: base 0 -7 , every eight into 1
  3. Decimal: base 0 -9 , every decimal 1
  4. Hex: cardinality is 0 -9 , A - F, every hex 1

Hexadecimal conversion

  1. Decimal switch Binary: with the value of this metric is removed at 2, to obtain a quotient and a remainder; Analyzing this quotient is zero, if the quotient is not zero, then continue to use this commercially removed at 2, until a time quotient is zero terminated ; the remainder of this division process produces a reverse arrangement is the decimal value corresponding to the binary
  2. Eight / from hexadecimal binary: first of all base octal are represented in binary (expressed by three). First of all base hexadecimal are represented (represented by four bits) in binary. Discarding redundant front 0, 0 as 0111 then the label 1 . 11 .

Common units of measurement computer data

  1. Bit ( 'bit / bit): the smallest unit
  2. Bytes (bytes / Byte): larger than the bit number, 1 byte = . 8 bits ( 'bit ) ie. IB = . 8 B
  3. KB:1KB=1024B
  4. MB:1MB=1024KB
  5. GB:1GB=1024MB

Common units and the corresponding hexadecimal:

Binary system K M G T P
Binary 1024 1024K 1024M 1024G 1024T
Decimal 1000 1000K 1000M 1000G 1000T

note:

  1. In the network transmission, the network bit is used as a unit, so the unit is commonly used network Mbit / s, i.e., how many Mbit per second. E.g. 8M bandwidth, conversion to Byte, the actual maximum download speed of 1MB / s.
  2. A 500GB hard drive for later, after the display format 460GB, because the hard disk maker typically in decimal units, i.e., 500GB = 500 x 1000 x 1000 x 1000B, when converted to binary (1024) becomes 460GB.


 

Published 694 original articles · won praise 560 · Views 1.34 million +

Guess you like

Origin blog.csdn.net/qq_36761831/article/details/104469327