[#bsl-to_string-043] = xref:bsl.adoc[bsl]::to_string :relfileprefix: ../ :mrdocs: Convert a numeric value to a `string`. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/string.adoc[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 [cols="1,4"] |=== | Name| Description | *value* | numeric value to convert |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#