cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Converting pointer to float.
Converting pointer to float.
May 7, 2010 at 11:10pm UTC
coolrox86
(7)
I've assigned a number into character pointer:
1
2
3
char
* strNumSet =
"12.33"
;
I want to convert pointer strNumSet into float. What is the correct way to do this?
Kindly thanks for any suggestion and help.
Last edited on
May 7, 2010 at 11:10pm UTC
May 7, 2010 at 11:12pm UTC
Bazzy
(6281)
See here for some ways:
http://www.cplusplus.com/articles/numb_to_text/
( replace
int
with
float
or
double
where needed )
Topic archived. No new replies allowed.