Decimal to binary conversion in c #

Posted by Pramodh on Stack Overflow See other posts from Stack Overflow or by Pramodh
Published on 2010-06-02T04:11:33Z Indexed on 2010/06/02 4:13 UTC
Read the original article Hit count: 258

Filed under:

How to convert a decimal no into binary in c #

Now i'm using like:

      String str="8";
      String Ans= Convert.ToInt32(str,2).ToString();

But its throwing some Exceptions.

Please help me to do this

Thanks in advance

© Stack Overflow or respective owner

Related posts about c#