How can we convert binary number into its octal number using c#?
<p><em>*</em>*Hey i was working on an application which converts any basenumber like (2,8,10,16,etc) to user's desire base system. I am having a problem in converting a binary number to its octal number can anyone help me out?</p>

<p>I tried everthing like</p>

<pre><code>// i am taking a binary number in value and then converting it to base 8

Int32 value = int.Parse(convertnumber);                           
Console.WriteLine(Convert.ToString(value, 8));
</code></pre>

<p>For example:
value =10011</p>

<p>Answer should be this  "23"  but using the above code i am getting "23433"</p>
