can somebody teach me or show me a code that converts a binary to a decimal.... >_<
and if you could kindly explain how it happens.... should be in TurboC programming....
ToiNKieZ
0
Newbie Poster
Recommended Answers
Jump to Post1010 in decimal =
1 * 2^3 + 0 * 2^2 + 1* 2^1 + 0*2^0 =
8 + 0 + 2 + 0 = 10
Thus 1010 in decimal is 10.
All 2 Replies
Reply to this topic
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.