[#bsl-to_wstring-05] = xref:bsl.adoc[bsl]::to_wstring :relfileprefix: ../ :mrdocs: `to_wstring` overloads == Synopses Declared in `<bslstl_string.h>` Same as `to_wstring` for `float`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/wstring.adoc[wstring] xref:bsl/to_wstring-090.adoc[to_wstring](double value); ---- [.small]#xref:bsl/to_wstring-090.adoc[_» more..._]# converts a floating point value to a string with the same contents as what `std::sprintf(buf, sz, L"%f", value)` would produce for a sufficiently large buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/wstring.adoc[wstring] xref:bsl/to_wstring-0b6.adoc[to_wstring](float value); ---- [.small]#xref:bsl/to_wstring-0b6.adoc[_» more..._]# Constructs a string with contents equal to the specified `value`. The contents of the string will be the same as what `std::swprintf(buf, L"%d", value)` would produce with a sufficiently large buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/wstring.adoc[wstring] xref:bsl/to_wstring-0d.adoc[to_wstring](int value); ---- [.small]#xref:bsl/to_wstring-0d.adoc[_» more..._]# Constructs a string with contents equal to the specified `value`. The contents of the string will be the same as what `std::swprintf(buf, L"%ld", value)` would produce with a sufficiently large buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/wstring.adoc[wstring] xref:bsl/to_wstring-099.adoc[to_wstring](long value); ---- [.small]#xref:bsl/to_wstring-099.adoc[_» more..._]# converts a floating point value to a string with the same contents as `what std::sprintf(buf, sz, L"%Lf", value)` would produce for a sufficiently large buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/wstring.adoc[wstring] xref:bsl/to_wstring-0e.adoc[to_wstring](long double value); ---- [.small]#xref:bsl/to_wstring-0e.adoc[_» more..._]# Constructs a string with contents equal to the specified `value`. The contents of the string will be the same as what `std::swprintf(buf, L"%lld", value)` would produce with a sufficiently large buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/wstring.adoc[wstring] xref:bsl/to_wstring-02.adoc[to_wstring](long long value); ---- [.small]#xref:bsl/to_wstring-02.adoc[_» more..._]# Constructs a string with contents equal to the specified `value`. The contents of the string will be the same as what `std::swprintf(buf, L"%u", value)` would produce with a sufficiently large buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/wstring.adoc[wstring] xref:bsl/to_wstring-0b1.adoc[to_wstring](unsigned int value); ---- [.small]#xref:bsl/to_wstring-0b1.adoc[_» more..._]# Constructs a string with contents equal to the specified `value`. The contents of the string will be the same as what `std::swprintf(buf, L"%lu", value)` would produce with a sufficiently large buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/wstring.adoc[wstring] xref:bsl/to_wstring-0c.adoc[to_wstring](unsigned long value); ---- [.small]#xref:bsl/to_wstring-0c.adoc[_» more..._]# Constructs a string with contents equal to the specified `value`. The contents of the string will be the same as what `std::swprintf(buf, L"%llu", value)` would produce with a sufficiently large buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/wstring.adoc[wstring] xref:bsl/to_wstring-097.adoc[to_wstring](unsigned long long value); ---- [.small]#xref:bsl/to_wstring-097.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#