Answers for "binary to decimal stl function"

C++
15

convert binary to decimal c++ stl

string bin_string = "10101010";
int number =0;
number = stoi(bin_string, 0, 2);
// number = 170
Posted by: Guest on September-08-2020

Code answers related to "binary to decimal stl function"

Browse Popular Code Answers by Language