C++ Language/Std/Strings/CastingNumericValues/NumberToString

Formatted-printed by  is an easy way to cast from a number into a string.

The more modern  outputs its formatted-string as a   object.

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