[#bsl-to_wstring-05]
= xref:bsl.adoc[bsl]::to&lowbar;wstring
:relfileprefix: ../
:mrdocs:

`to&lowbar;wstring` overloads

== Synopses

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

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


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

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/wstring.adoc[wstring]
xref:bsl/to_wstring-0b6.adoc[to&lowbar;wstring](float value);
----

[.small]#xref:bsl/to_wstring-0b6.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;swprintf(buf, L&quot;%d&quot;, value)` would produce with a sufficiently large buffer&period;


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

[.small]#xref:bsl/to_wstring-0d.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;swprintf(buf, L&quot;%ld&quot;, value)` would produce with a sufficiently large buffer&period;


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

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/wstring.adoc[wstring]
xref:bsl/to_wstring-0e.adoc[to&lowbar;wstring](long double value);
----

[.small]#xref:bsl/to_wstring-0e.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;swprintf(buf, L&quot;%lld&quot;, value)` would produce with a sufficiently large buffer&period;


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

[.small]#xref:bsl/to_wstring-02.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;swprintf(buf, L&quot;%u&quot;, value)` would produce with a sufficiently large buffer&period;


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

[.small]#xref:bsl/to_wstring-0b1.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;swprintf(buf, L&quot;%lu&quot;, value)` would produce with a sufficiently large buffer&period;


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

[.small]#xref:bsl/to_wstring-0c.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;swprintf(buf, L&quot;%llu&quot;, value)` would produce with a sufficiently large buffer&period;


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

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


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