Bin Dec Hex Oct Converter

Also how could i take serial read as an octal value, so the user could put in 012

That's an interesting question.
What if you entered 011?
Would you interpret as 3 or 9?