Need Hellpppppp
I want to convert a digit into binary form how can i do this using C# plz help me i kno to convert binary to digit but can't do the reverse please help as soon as possible
thanks in advance

Recommended Answers

All 2 Replies

You can use

string binary = Convert.ToString(int digit, 2);

You can also use it to convert to octagonal and hexadecimal by changing the 2 to 8 or 16, respectively.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.