Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How can you convert a binary code 1000010 to Number then to Character?

user-image
Question added by Ahmed Maher allam , Senior IT Consultant , CBK - G&D - AXIS-olutions
Date Posted: 2015/04/11
Ahmed Maher
by Ahmed Maher , System Administrator & IT Consultant , Axis Solutions (KGL)

you need to change it first from binary to decimal2+64=66 then change it from deci to char according to the ascii standard code to char B

Usman Mirza
by Usman Mirza , Software Engineer , MTBC

Try in ASP.NET what ever you like here is the logic: int binarycode =1000010;byte[] byt =BitConverter.GetBytes(binarycode);string character =System.Text.Encoding.ASCII.GetString(byt);character=character.TrimEnd('\\0'); // remove extra NULL

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.