Administrator

Administrator

  • Tech Writer
  • 2.2k
  • 1.5m

bits as an integer

Apr 14 2003 2:36 AM
I have 31 bits (as a string) inside a textbox that I need to represent as an integer. My code is simple: myTextBox.Text = "1100111101000101000111010001011"; myInt = int.Parse(myTextBox.Text); // error, number too large Obviously I am going about this the wrong way. Any help would be appreciated.

Answers (11)