Convert a numeric value to a string.

Synopsis

Declared in <bslstl_string.h>

string
to_string(float value);

Description

converts a floating point value to a string with the same contents as what std::sprintf(buf, "%f", value) would produce for a sufficiently large buffer.

Return Value

string representation of value

Parameters

Name

Description

value

numeric value to convert

Created with MrDocs