Skip to main content
GameDev.net gamedev.net
🔒 Locked

string to float

Started by SarsDP May 1, 2003 at 9:48 PM 10 replies 1.6k views
Original Post
SarsDP
SarsDP
How would you go about converting a string into a float?
Mishkin
Mishkin
In c++, use atof() and pass it a const char *
SarsDP
SarsDP
Just for the record im using C++, and thanks for the quick replies but i have one more question now. What header is stringstream in?
Interim
Interim
sstream
SarsDP
SarsDP
I included sstream and i get this error
error C2065: 'stringstream' : undeclared identifier


[edited by - SarsDP on May 1, 2003 11:16:31 PM]
SarsDP
SarsDP
nevermind, i got it

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.