I\'m wondering what sort of algorithm could be used to take something like \"4.72\" into a float data type, equal to
float x = 4.72;
For C++ you can use boost::lexical_cast:
std::string str( "4.72" ); float x = boost::lexical_cast< float >( str );
For C you can use sscanf:
char str[]= "4.72"; float x; sscanf( str, "%f", &x );