Bits, Bytes, KiloBytes, MegaBytes, GigaBytes & TeraBytes.
Bit 0 or 1
Byte Equivalent to 8 bits
KiloByte 2 10 Bytes (approx. a thousand) K - Thousand 10 3
MegaByte 2 20 Bytes (approx. a million) M - Million 10 6
GigaByte 2 30 Bytes (approx. a billion) G - Billion 10 9
TeraByte 2 40 Bytes (approx. a trillion) T - Trillion 10 12
Decimal (compare to binary) 451 = 4* * * = 4* * * * = 5* * * * *10 0
Binary = 1* *2 3 +0*2 2 +1*2 1 +1*2 0 = = 19 (in base 10) = 1* * *2 3 +1*2 2 +0*2 1 +1*2 0 = = 45 (in base 10) 1101 = ?
One character is represented using one byte (8 bits)
ASCII American Standard Code for Information Interchange The ASCII character code for the letter A is 65 = The ASCII character code for the letter B is 66 = etc.
ASCII (continued) The ASCII character code for a space (pressing the space bar) is 32 = The ASCII character code for the letter a is 97 = The ASCII character code for the letter b is 98 = etc.
Base 16 Base two - digits run from 0 to 1 Base ten - digits run from 0 to 9 Base sixteen - digits run from 0 to 15 The digits are: A B C D E F
Hexadecimal to Decimal 8 D = 8* D*16 0 = 8* *16 0 = 141 D 8 = D* *16 0 = 13* *16 0 = E = 3* E*16 0 = 3* *16 0 = 62
Decimal to Hexadecimal D 125 in base 16 is: Therefore, there is a remainder of 13 (or D). 16*7 = 112 and = 13. 7D
Decimal to Hexadecimal BF 191 in base 16 is: Therefore, there is a remainder of 15 (or F). 16*11 = 176 and = 15. BF