How can I convert a char that has this info in it "312,000" to a double?
I know I can use atof but it doesnt work with the comma.. is there any way to remove the comma.. or to use atof when theres non numeric values in the char?
[B]>Or loop through the 'char' and use the num = (num * 10) + char process.[/B] Nine times out of ten, this algorithm breaks on edge cases. Unless it's a homework problem, such a manual process isn't recommended when there are better alternatives like std::stringstream. [B]>Use something like this[/B] Manually … Read More
Are you able to help answer this sponsored question?
Questions asked by members who have earned a lot of community kudos are featured in order to give back and encourage quality replies.