[#bsl-to_string-0f] = xref:bsl.adoc[bsl]::to_string :relfileprefix: ../ :mrdocs: `to_string` overloads == Synopses Declared in `<bslstl_string.h>` Same as `to_string` for `float`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/string.adoc[string] xref:bsl/to_string-01.adoc[to_string](double value); ---- [.small]#xref:bsl/to_string-01.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/string.adoc[string] xref:bsl/to_string-043.adoc[to_string](float value); ---- [.small]#xref:bsl/to_string-043.adoc[_» more..._]# `to_string` functions are made friends to allow access to the internal short string buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/string.adoc[string] xref:bsl/to_string-0c7.adoc[to_string](int value); ---- [.small]#xref:bsl/to_string-0c7.adoc[_» more..._]# Constructs a string with contents equal to the specified `value`. The contents of the string will be the same as what `std::sprintf(buf, "%ld", value)` would produce with a sufficiently large buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/string.adoc[string] xref:bsl/to_string-09.adoc[to_string](long value); ---- [.small]#xref:bsl/to_string-09.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/string.adoc[string] xref:bsl/to_string-04b.adoc[to_string](long double value); ---- [.small]#xref:bsl/to_string-04b.adoc[_» more..._]# Constructs a string with contents equal to the specified `value`. The contents of the string will be the same as what `std::sprintf(buf, "%lld", value)` would produce with a sufficiently large buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/string.adoc[string] xref:bsl/to_string-03.adoc[to_string](long long value); ---- [.small]#xref:bsl/to_string-03.adoc[_» more..._]# Constructs a string with contents equal to the specified `value`. The contents of the string will be the same as what `std::sprintf(buf, "%u", value)` would produce with a sufficiently large buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/string.adoc[string] xref:bsl/to_string-0c8.adoc[to_string](unsigned int value); ---- [.small]#xref:bsl/to_string-0c8.adoc[_» more..._]# Constructs a string with contents equal to the specified `value`. The contents of the string will be the same as what `std::sprintf(buf, "%lu", value)` would produce with a sufficiently large buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/string.adoc[string] xref:bsl/to_string-07.adoc[to_string](unsigned long value); ---- [.small]#xref:bsl/to_string-07.adoc[_» more..._]# Constructs a string with contents equal to the specified `value`. The contents of the string will be the same as what `std::sprintf(buf, "%llu", value)` would produce with a sufficiently large buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/string.adoc[string] xref:bsl/to_string-08.adoc[to_string](unsigned long long value); ---- [.small]#xref:bsl/to_string-08.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#