I tried to convert octal numbers to decimal numbers and I found the formula but I am expecting a different way.
My way is: the octal is $547$.
Formula: $(5*8^2)+(4*8^1)+(7*8^0)$
Answer: $355$
But I am expecting a different way.
Since I want to implement the concept to my java program and please kindly give any one update for this concept.