Convert ASCII value to a Binary value
I want to convert an ASCII value to a Binary value using C# language.Pls reply soon.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
AlanRank #669 · 3.6K reputationPosted Aug 16, 2007, 12:17 AM EDT
If you're asking how to display a byte in binary notation, then this should do it:
Dim b As Byte = 32 ' or whatever
Dim s As String = Convert.ToString(b, 2)
Console.WriteLine(s) ' 100000