C++ Language/Std/Strings/CastingNumericValues/StringToNumber
The inverse of formatted-printing can cast from a C-string into a numeric variable: sscanf("11", "&d", &iVar);
.
Additional information about casting from string to number (includes interactive examples)