15,796,738 members
See more:
I want to convert binary value to decimal value.
Suppose i want to convert 111 can any one give me code for this.
Posted

## Solution 1

Try
http://kyrathaba.dcmembers.com/errata/binary_decimal.htm[^]
Conversion of Decimal to any Base (Binary, Octal or Hexa) and vice-versa (C#)[^]

However, honestly speaking, this appears to be homework and you should give it a try before asking questions here.

jaideepsinh 10-Dec-11 2:48am
No Dear,But i have some easy code for convert hexadecimal to binary like this
TreeBinaryval = Convert.ToString(Convert.ToInt32(TreeStartOfMessage, 16), 2);
so i want if i get some easy code like this for convert binary to decimal so i ask.
Rubaba 10-Dec-11 10:44am
my 5
Abhinav S 10-Dec-11 10:44am
Thank you.

## Solution 3

Hello,

http://www.codeproject.com/Messages/4046276/Re-csharp-binary-to-decimal-code-new.aspx[^]

Leads to a page of my suggestion for this problem,
and you can also see many other solutions,
even better, refers to the program code.

v8

## Solution 4

This is an article I posted a long time ago that may help: Binary, octal, and hexadecimal 32 bit structs[^]