Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
StrToDouble is a code snippet to convert a std::string to double. DoubleToStr converts an double to std::string.
StrToDouble has multiple versions:

StrToDouble using the C++98 and the STL

StrToDouble using the C++98 and the Boost library

StrToDouble using the C++0x and the STL

StrToDouble using the C++98 and the STL
Uses std::atof.
#include <string> |

StrToDouble using the C++98 and the Boost library
Uses boost::lexical_cast.
#include <string> |

StrToDouble using the C++0x and the STL
Uses std::stoi.
#include <string> |
#include <string> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.