Function to pass from text to float
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
I know that it can be a silly question but I would use a function to pass from text string "1234" to float 1234. thanks in advance
atof
orsscanf
. If you're using the Standard C++ Library, you could also use astringstream
and extract the data out using the>>
operator. Finally, you could consider Boost's lexical_cast[^] template. -
I know that it can be a silly question but I would use a function to pass from text string "1234" to float 1234. thanks in advance
use atof() function inside ur func. Thanks The chosen One :)