I've tried several methods and now I've gotten all confused :wacko: .
So I have a number inside a string. Let's take, for example, "200." Now, I want to convert the string into a long and divide it by 2 then store it back inside a string. I tried using ostringstream, but couldn't get it to work correctly.
Question
Blackout
I've tried several methods and now I've gotten all confused :wacko: .
So I have a number inside a string. Let's take, for example, "200." Now, I want to convert the string into a long and divide it by 2 then store it back inside a string. I tried using ostringstream, but couldn't get it to work correctly.
Does anyone know what to do?
Link to comment
https://www.neowin.net/forum/topic/274948-c-number-to-string/Share on other sites
11 answers to this question
Recommended Posts