octal to decimal
78
please explain step by step
Answers
Answered by
1
Answer:
Formula(Octal to Decimal):
Let Octal number have ‘n’ digits.
F(n) = (Last Digit)*pow(8,0) + (Second last digit)*pow(8,1) + … + (first digit)*(8,n-1).
Example:
Decimal = 116
Octal = 78
Answered by
1
Answer:
Multiply each digit with powers of 8 and add them.
In your example there's two digits in the number. 8 at ones place and 7 at tens place.
Now what you've gotta do is start from the ones place by multiplying it with 8^0. Multiply tens place, i.e., 7 with the next power of 8, i.e., 8^1.
decimal equivalent of 78
= (7 X 8^1) + (8 X 8^0)
= 56 + 8
= 64
I've done another example for you
decimal equivalent of 100
= (1 X 8^2) + (0 X 8^1) + (0 X 8^0)
= 64 + 0 + 0
= 64
Just remember always start off at ones place.
Hope this helped :)
Similar questions