Lecture 1 Number System
Lecture 1 Number System
APPLICATIONS IN
PHARMACY
CAP 424
Introduction to Numbering Systems
• Binary Base 2
• Octal Base 8
• Hexadecimal Base 16
Characteristics of Numbering Systems
(128)10 = (?)2
Octal Number System
Octal Number System has a base of eight and uses the numbers from 0 to 7. The octal numbers, in
the number system, are usually represented by binary numbers when they are grouped in pairs of three.
Any number with base 8 is an octal number like 24 8, 1098, 558, etc.
Base – 8
1248 = 1 × 82 + 2 × 81 + 4 × 80
Octal Number System
Example 1: Suppose 2158 is an octal number, then it’s decimal
form will be,
2158 = 2 × 82 + 1 × 81 + 5 × 80
= 2 × 64+ 1 × 8 + 5 × 1 = 128 + 8 + 5
= 14110
33E16
Hexadecimal to Decimal Conversion
Convert (3B4F)16 to its decimal equivalent:
Hex Digits
3 B 4 F
x x x x
Positional Values
163 162 161 160
Products 12288 +2816 + 64 +15
15,18310
Binary to Hexadecimal Conversion
• The easiest method for converting binary to hexadecimal is to use a
substitution code
• Each hex number converts to 4 binary digits
Any
Queries ?