, C C99, printf( ) scanf( ) %a. C99 strtod( ), strtof( ) strtold( ):
float value = strtof(string, NULL, 0);
NULL char **, , 0 ( , , python , )
If your compiler / library provider decided not to care about C99 (MSVC, mostly), you probably weren't lucky until these functions are included in the C ++ standard (I believe they are in the C ++ 0x project, but I'm not quite sure).
source
share