[#BloombergLP-bdlb-NumericParseUtil-parseDouble-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NumericParseUtil.adoc[NumericParseUtil]::parseDouble
:relfileprefix: ../../../
:mrdocs:

Parse the specified `inputString` for a sequence of characters matching the production rule &lt;DOUBLE&gt; (see &lcub;Grammar Production Rules&rcub;) and place into the specified `result` the corresponding value&period; Optionally specify `remainder`, in which to store the remainder of the `inputString` immediately following the successfully parsed text, or the position at which a parse failure was detected&period; Return zero on success, and a non&hyphen;zero value otherwise&period; The value of `result` is unchanged if a parse failure occurs unless it is a range error (value `ERANGE` from `&lt;cerrno&gt;`)&period; In case of `ERANGE` return value `result` will be set to zero on underflow and infinity in case of overflow, with the appropriate sign&period; The behavior is undefined unless the current numeric locale is the `&quot;C&quot;` locale, such that `strcmp(setlocale(LC&lowbar;NUMERIC, 0), &quot;C&quot;) &equals;&equals; 0`&period; For more information see &lcub;Floating Point Values&rcub;&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;numericparseutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
parseDouble(
    double* result,
    std::string&lowbar;view const& inputString);
----


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