#include #include int main() { char s[100] =\"4.0800\" ; printf(\"float value : %4.8f\\n\" ,(float) atoll(s)); return
You want to use the atof() function.
http://www.cplusplus.com/reference/clibrary/cstdlib/atof/