I am not able to do this coversion. I surfed stackoverflow and got this link, but idk how that formula came.
please explain me
here is the link
and formula is value += (str[0] - ‘0’)*pow(10,count);
If you have a better and easy solution, let me know. Thanks