Search code examples
c++castingatoi

like atoi but to float


Is there a function similar to atoi which converts a string to float instead of to integer?


Solution

  • atof()

    (or std::atof() talking C++ - thanks jons34yp)