even if u want in C++ ...atof will work ...

do u have any other issue..do let me know ..