[#bsl-to_string-0f]
= xref:bsl.adoc[bsl]::to&lowbar;string
:relfileprefix: ../
:mrdocs:

`to&lowbar;string` overloads

== Synopses

Declared in `&lt;bslstl&lowbar;string&period;h&gt;`

Same as `to&lowbar;string` for `float`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/string.adoc[string]
xref:bsl/to_string-01.adoc[to&lowbar;string](double value);
----

[.small]#xref:bsl/to_string-01.adoc[_» more&period;&period;&period;_]#

converts a floating point value to a string with the same contents as what `std&colon;&colon;sprintf(buf, &quot;%f&quot;, value)` would produce for a sufficiently large buffer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/string.adoc[string]
xref:bsl/to_string-043.adoc[to&lowbar;string](float value);
----

[.small]#xref:bsl/to_string-043.adoc[_» more&period;&period;&period;_]#

`to&lowbar;string` functions are made friends to allow access to the internal short string buffer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/string.adoc[string]
xref:bsl/to_string-0c7.adoc[to&lowbar;string](int value);
----

[.small]#xref:bsl/to_string-0c7.adoc[_» more&period;&period;&period;_]#

Constructs a string with contents equal to the specified `value`&period; The contents of the string will be the same as what `std&colon;&colon;sprintf(buf, &quot;%ld&quot;, value)` would produce with a sufficiently large buffer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/string.adoc[string]
xref:bsl/to_string-09.adoc[to&lowbar;string](long value);
----

[.small]#xref:bsl/to_string-09.adoc[_» more&period;&period;&period;_]#

converts a floating point value to a string with the same contents as what `std&colon;&colon;sprintf(buf, &quot;%Lf&quot;, value)` would produce for a sufficiently large buffer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/string.adoc[string]
xref:bsl/to_string-04b.adoc[to&lowbar;string](long double value);
----

[.small]#xref:bsl/to_string-04b.adoc[_» more&period;&period;&period;_]#

Constructs a string with contents equal to the specified `value`&period; The contents of the string will be the same as what `std&colon;&colon;sprintf(buf, &quot;%lld&quot;, value)` would produce with a sufficiently large buffer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/string.adoc[string]
xref:bsl/to_string-03.adoc[to&lowbar;string](long long value);
----

[.small]#xref:bsl/to_string-03.adoc[_» more&period;&period;&period;_]#

Constructs a string with contents equal to the specified `value`&period; The contents of the string will be the same as what `std&colon;&colon;sprintf(buf, &quot;%u&quot;, value)` would produce with a sufficiently large buffer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/string.adoc[string]
xref:bsl/to_string-0c8.adoc[to&lowbar;string](unsigned int value);
----

[.small]#xref:bsl/to_string-0c8.adoc[_» more&period;&period;&period;_]#

Constructs a string with contents equal to the specified `value`&period; The contents of the string will be the same as what `std&colon;&colon;sprintf(buf, &quot;%lu&quot;, value)` would produce with a sufficiently large buffer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/string.adoc[string]
xref:bsl/to_string-07.adoc[to&lowbar;string](unsigned long value);
----

[.small]#xref:bsl/to_string-07.adoc[_» more&period;&period;&period;_]#

Constructs a string with contents equal to the specified `value`&period; The contents of the string will be the same as what `std&colon;&colon;sprintf(buf, &quot;%llu&quot;, value)` would produce with a sufficiently large buffer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/string.adoc[string]
xref:bsl/to_string-08.adoc[to&lowbar;string](unsigned long long value);
----

[.small]#xref:bsl/to_string-08.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
