[#bsl-stof-09]
= xref:bsl.adoc[bsl]::stof
:relfileprefix: ../
:mrdocs:

`stof` overloads

== Synopses

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

Parse the specified `str` as a floating&hyphen;point number&semi; see `stod`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
float
xref:bsl/stof-03.adoc[stof](
    xref:bsl/string.adoc[string] const& str,
    std::size&lowbar;t* pos = 0);
----

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

Same as `stof` for `wstring`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
float
xref:bsl/stof-00.adoc[stof](
    xref:bsl/wstring.adoc[wstring] const& str,
    std::size&lowbar;t* pos = 0);
----

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


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