[#absl-SimpleAtod]
= xref:absl.adoc[absl]::SimpleAtod
:relfileprefix: ../
:mrdocs:

Converts the given string into a double, returning `true` if successful&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;numbers&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
bool
SimpleAtod(
    std::string&lowbar;view str,
    double* out);
----

== Description

The string (optionally followed or preceded by ASCII whitespace) may be rounded on overflow or underflow&period; See https&colon;&sol;&sol;en&period;cppreference&period;com&sol;w&sol;c&sol;string&sol;byte&sol;strtof for details about the allowed formats for `str`, except `SimpleAtod` is locale&hyphen;independent and will always use the &quot;C&quot; locale&period; If any errors are encountered, this function returns `false`, leaving `out` in an unspecified state&period;

== Return Value

`true` on success&semi; otherwise `false`&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *str*
| The string to parse&period;
| *out*
| The location that receives the parsed value&period;
|===


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