Converting binary to decimal the hard way
-
http://www.codeproject.com/Forums/1649/Csharp.aspx?fid=1649&tid=4044425[^] My favorite part is:
string sayii = textBox1.Text.Substring(0, textBox1.Text.Length);
:wtf: -
http://www.codeproject.com/Forums/1649/Csharp.aspx?fid=1649&tid=4044425[^] My favorite part is:
string sayii = textBox1.Text.Substring(0, textBox1.Text.Length);
:wtf:Yeah, I found it very hard to keep a straight face while answering OP. I don't do C#, but I figured any language has to have a descendant of the grey-beard strtol(). Google had the answer before I'd finished typing the question. Cheers, Peter
Software rusts. Simon Stephenson, ca 1994.
-
http://www.codeproject.com/Forums/1649/Csharp.aspx?fid=1649&tid=4044425[^] My favorite part is:
string sayii = textBox1.Text.Substring(0, textBox1.Text.Length);
:wtf: -
http://www.codeproject.com/Forums/1649/Csharp.aspx?fid=1649&tid=4044425[^] My favorite part is:
string sayii = textBox1.Text.Substring(0, textBox1.Text.Length);
:wtf: -
Dropped my jaw when I read that message.
Excuse me for my improper grammar and typos. It's because English is my primary language, not my first language. My first languages are C# and Java. VB, ASP, JS, PHP and SQL are my second language. Indonesian came as my third language. My fourth language? I'm still creating it, I'll let you know when it's done! :-D
-
You're right. There's a .ToString() missing. I.e. :
string sayii = textBox1.Text.Substring(0, textBox1.Text.Length).ToString();
Probably a ToUpper as well, to protect against lower-case binary digits. :sigh: