bsl::to_string

Convert a numeric value to a string.

Synopsis

Declared in <bslstl_string.h>

string
to_string(long double value);

Description

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

Return Value

string representation of value

Parameters

NameDescription
valuenumeric value to convert