bsl::to_string

Convert a numeric value to a string.

Synopses

Declared in <bslstl_string.h>

Convert a numeric value to a string.

string
to_string(double value);
» more...

Convert a numeric value to a string.

string
to_string(float value);
» more...

Convert a numeric value to a string.

string
to_string(int value);
» more...

Convert a numeric value to a string.

string
to_string(long value);
» more...

Convert a numeric value to a string.

string
to_string(long double value);
» more...

Convert a numeric value to a string.

string
to_string(long long value);
» more...

Convert a numeric value to a string.

string
to_string(unsigned int value);
» more...

Convert a numeric value to a string.

string
to_string(unsigned long value);
» more...

Convert a numeric value to a string.

string
to_string(unsigned long long value);
» more...

Return Value

string representation of value

Parameters

NameDescription
valuenumeric value to convert