How can I convert a binary string, such as 1001101 to Decimal? (77)
1001101
The Convert.ToInt32 method has an overload that accepts a base parameter.
Convert.ToInt32
Convert.ToInt32("1001101", 2).ToString();
1.4m articles
1.4m replys
5 comments
57.0k users