Source coverage: uploaded Computer eBook โ€” Chapter 3 (PDF pages 11โ€“14). Content kept source-grounded; obvious print/typesetting issues are flagged rather than silently changed.
Base 2
Binary โ€ข 0, 1
Base 8
Octal โ€ข 0โ€“7
Base 10
Decimal โ€ข 0โ€“9
Base 16
Hex โ€ข 0โ€“9, Aโ€“F
๐Ÿง  Introduction
  • A Number System is a method of representing numbers using a set of symbols (digits).
  • A number system is a method of representing numbers using a set of symbols called digits.
  • Computers use binary (0 and 1) because electronic circuits work through ON (1) and OFF (0) states.
  • Computers use binary (0 and 1) because their operations are based on the ON (1) and OFF (0) states of electronic circuits.
NUMBER SYSTEMNumber System BINARYBase 2Digits: 0, 1 OCTALBase 8Digits: 0โ€“7 DECIMALBase 10Digits: 0โ€“9 HEXADECIMALBase 160โ€“9, Aโ€“F
๐Ÿ“‹ Types of Number Systems
Number SystemBaseDigits UsedSource Example
Binary20, 1(1011)2
Octal80 to 7(725)8
Decimal100 to 9(593)10
Hexadecimal160โ€“9, Aโ€“F(2A)16
2
Binary
Digits: 0, 1
Simple for computer circuits
8
Octal
Digits: 0โ€“7
3 binary bits = 1 octal digit
10
Decimal
Digits: 0โ€“9
Human-friendly representation
16
Hexadecimal
Digits: 0โ€“9, Aโ€“F
4 binary bits = 1 hex digit
0๏ธโƒฃ1๏ธโƒฃ Binary Number System โ€” Base 2
  • Digits: 0, 1
  • Place values: 20, 21, 22, 23 ...
  • Advantages: simple for computer circuits; less chance of error in digital processing.
(1011)2 = 1ร—23 + 0ร—22 + 1ร—21 + 1ร—20 = 1110
8๏ธโƒฃ Octal Number System โ€” Base 8
  • Digits: 0 to 7
  • Place values: 80, 81, 82 ...
  • Octal is used as a short form of binary.
  • 3 binary bits = 1 octal digit
(725)8 = 7ร—82 + 2ร—81 + 5ร—80 = 448 + 16 + 5 = 46910
๐Ÿ”Ÿ Decimal Number System โ€” Base 10
  • Digits: 0 to 9
  • Place values: 100, 101, 102 ...
  • Use: Human-friendly representation of numbers.
(593)10 = 5ร—102 + 9ร—101 + 3ร—100
PDF PRINT NOTE
Correct arithmetic: 500 + 90 + 3 = 593. The units digit contributes 3 ร— 10โฐ = 3.
๐Ÿ…ฐ๏ธ Hexadecimal Number System โ€” Base 16
  • Digits: 0โ€“9 and Aโ€“F
  • A = 10, B = 11 ... F = 15
  • Place values: 160, 161, 162 ...
  • Used as a short form of binary.
  • 4 binary bits = 1 hexadecimal digit
(2A)16 = 2ร—161 + 10ร—160 = 32 + 10 = 4210
๐Ÿ”„ Relationship Between Number Systems
3 Binary Bits โ‡„ 1 Octal Digit
Binary โ†” Octal grouping
4 Binary Bits โ‡„ 1 Hex Digit
Binary โ†” Hexadecimal grouping
  • Decimal โ†’ another base: divide the integer part repeatedly; multiply the fractional part repeatedly by the target base. Reverse conversion uses positional weights.
  • Binary/Octal/Hexadecimal โ†’ Decimal: positional values are used.
Decimal โ†’ Binary
  • Repeatedly divide by 2.
  • Write remainders.
  • Read the remainders in reverse order.
13รท2 = 6 R1 โ†’ 6รท2 = 3 R0 โ†’ 3รท2 = 1 R1 โ†’ 1รท2 = 0 R1
Answer = 11012
Binary โ†’ Decimal

Multiply each bit by 2n, where n is the position from the right starting at 0.

(1011)2 = 1ร—23 + 0ร—22 + 1ร—21 + 1ร—20 = 1110
Binary โ‡„ Octal
  • Binary โ†’ Octal: group integer bits in 3 from the right; group fractional bits in 3 from the binary point towards the right. Pad with zeros at the outer ends if needed.
  • Octal โ†’ Binary: convert each octal digit to 3 binary bits.
(101101)2 = (101 101) โ†’ 558
(725)8 โ†’ (111010101)2
Binary โ‡„ Hexadecimal
  • Binary โ†’ Hex: group integer bits in 4 from the right; group fractional bits in 4 from the binary point towards the right. Pad with zeros at the outer ends if needed.
  • Hex โ†’ Binary: each hex digit becomes 4 binary bits.
(11010110)2 โ†’ D616
(2F)16 โ†’ (00101111)2
8๏ธโƒฃ / 1๏ธโƒฃ6๏ธโƒฃ Decimal โ†’ Octal / Hexadecimal
  • Use repeated division by 8 for octal and by 16 for hexadecimal.
  • Source example: 12510 โ†’ divide by 8 โ†’ remainder method โ†’ 1758.
โž— Fractions in Number System
  • For fractional part conversion, Decimal โ†’ Binary uses repeated multiplication by 2.
  • At each step, take the integer part and repeat the process with the fractional part.
0.625 ร— 2 = 1.25 (take 1) โ†’ 0.25 ร— 2 = 0.5 (take 0) โ†’ 0.5 ร— 2 = 1.0 (take 1). Therefore (0.625)โ‚โ‚€ = (0.101)โ‚‚.
PDF TYPESETTING NOTE
The first product is 1.25. Read the extracted integer bits in the order they are produced: 1, 0, 1.
(0.101)2 = 1ร—2โˆ’1 + 0ร—2โˆ’2 + 1ร—2โˆ’3 = 0.5 + 0 + 0.125 = 0.625
๐ŸŽฏ Advantages & Uses
SystemUse / Advantage from PDF
BinaryProcessing in computers; simple for circuits; less chance of error in digital processing.
OctalShort representation of binary in older systems.
DecimalHuman readable / human-friendly representation.
HexadecimalMemory addresses, color codes, machine instructions.
โšก Master Summary Table
BaseNameDigits UsedBits Relation
2Binary0, 11 bit
8Octal0โ€“73 bits
10Decimal0โ€“9โ€”
16Hexadecimal0โ€“9, Aโ€“F4 bits
โšก Quick Recall โ€” Bases
Binary = 2 โ€ข Octal = 8 โ€ข Decimal = 10 โ€ข Hexadecimal = 16
โšก Quick Recall โ€” Grouping
3 binary bits = 1 octal digit
4 binary bits = 1 hexadecimal digit
โš  Exam Trap
Octal digits are only 0โ€“7; digits 8 and 9 are not part of octal.
โš  Exam Trap
Hexadecimal uses Aโ€“F for values 10โ€“15.
๐ŸŽฏ Conversion Memory Rule
Decimal โ†’ another base: repeated division (integer part).
Decimal fraction โ†’ binary: repeated multiplication by 2.
๐ŸŽฏ Use Memory Rule
Binary โ†’ computer processing โ€ข Octal โ†’ older binary shorthand โ€ข Decimal โ†’ human readable โ€ข Hex โ†’ memory/color/machine instructions.