Replaced our own number conversion function with boost::lexical_cast.