C++ Language/Std/Strings/CastingNumericValues/StringToNumber

The inverse of formatted-printing can cast from a C-string into a numeric variable:.

Additional information about casting from string to number (includes interactive examples)