Jump to content

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

From Wikibooks, open books for an open world

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)