Octal to Decimal Conversion:
To convert Octal to Decimal, we can use positional notation method.
1. Write down the Octal digits and list the powers of 8 from right to left(Positional Notation).
2. For each positional notation of the digit write the equivalent weight.
3. Multiply each digit with its corresponding weight.
4. Add all the values.
Example:
Convert (1265)8 to equivalent Decimal number
Weight |
512 |
64 |
8 |
1 |
Positional
Notation |
83 |
82 |
81 |
80 |
Given number |
1 |
2 |
6 |
5 |
(1265)8 = 512 x 1 + 64 x 2 + 8 x 6 + 1 x 5
= 512 + 128 + 48 + 5
(1265)8 = (693)10
Hexadecimal to Decimal Conversion:
To convert Hexadecimal to Decimal we can use positional notation method.
1. Write down the Hexadecimal digits and list the powers of 16 from right to left (Positional Notation).
2. For each positional notation written for the digit, now write the equivalent weight.
3. Multiply each digit with its corresponding weight.
4. Add all the values to get one final value.
Example: Convert (25F)16 into its equivalent Decimal number.
Weight |
256 |
16 |
1 |
Positional
Notation |
162 |
161 |
160 |
Given number |
2 |
5 |
f(15) |