Please enable JavaScript.
Coggle requires JavaScript to display documents.
Chapter 3 Coding System (3.3 Number Representation in Computer (Bit = 1…
Chapter 3 Coding System
3.1 Binary, Denary, Hexdecimal
https://youtu.be/Jcaga5IMDow
3.2 Number Conversion
Binary to Denary and Hexadecimal
30D = 0011 0000 1101
3 = 0011
0 = 0000
D = 1101
Denary to Binary and Hexadecimal
3.3 Number Representation in Computer
Bit = 1 Binary Digit
e.g. 8 bit represents 256 distinct values
n bit represents 2^n distinct values
1 Byte = 8 bits
1 KB = 1024 Bytes
1 MB = 1024 KB
1 GB = 1024 MB
1 TB = 1024 GB
1 PB = 1024 TB
Word length = natural unit of processing data
Signed Binary Integer
Unsigned Binary Integer
4-bit Two's Complement
7 = 0111
6 = 0110
5 = 0101
4 = 0100
3 = 0011
2 = 0010
1 = 0001
0 = 0000
–1 = 1111
–2 = 1110
–3 = 1101
–4 = 1100
–5 = 1011
–6 = 1010
–7 = 1001
–8 = 1000
All positive numbers begin with 0.
All negative numbers begin with 1.
3.4 Addition and Subtraction of Different Numbers
3.5 Character Coding System
ASCII
originally 7-bit code
now 8-bit
Big-5 code (Traditional Chinese)
double-byte code
GB code (Simplified Chinese)
1 to 4 bytes
Unicode (1 to 4 bytes)
e.g. UTF-8