Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • string a = "00001"; string b = "00011"; int num1 = Convert.ToInt32(a, 2); int num2 = Convert.ToInt32(b, 2); string ans = Convert.ToString(num1 + num2, 2); MessageBox.Show(ans); "thanks alot :) u have saved my project !!!!!!!!!!!!!!!!" Commented Feb 12, 2010 at 16:05
  • i needed to caluclate attendance using this logic :) , as 00001 wld represent absent for 1st hour ( we haf hourly wise attendance) so if a student is absent for the next hr in the same day 00001 - absent first hr 00010 - absent second hr ------ 00011 - absent for 1st and second hr :D it works !! thank u Commented Feb 12, 2010 at 16:06
  • I have to say, I didn't know that particular override of Convert.ToInt32 exists! Commented Feb 13, 2010 at 11:30