Converting pointer to float.

May 7, 2010 at 11:10pm
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
May 7, 2010 at 11:12pm
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.