Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
IsDouble is a check code snippet to check if a std::string or AnsiString can be converted to a double.
IsDouble is shown in two flavors:
For std::strings, CanCast and CanLexicalCast are more general versions of IsDouble.
#include <cassert> |
This code compiles cleanly under C++ Builder 6.0
//From http://www.richelbilderbeek.nl/CppIsDouble.htm |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.