http://c-faq.com/~scs/cclass/asgn.beg/PS4.html
http://www.cplusplus.com/reference/c.../cstdlib/atof/