<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[atof()]]></title><description><![CDATA[<p>Hallo,</p>
<p>eine kurze Frage: Könnte es zu Problemen führen, wenn ein leerer String mit atof(string.c_str()) in einen Double umgewandelt wird? Die Funktion atof(string.c_str()) gibt dann eine einfache 0 zurück.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/330434/atof</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 10:38:36 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/330434.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Jan 2015 08:47:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to atof() on Sat, 10 Jan 2015 08:47:50 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>eine kurze Frage: Könnte es zu Problemen führen, wenn ein leerer String mit atof(string.c_str()) in einen Double umgewandelt wird? Die Funktion atof(string.c_str()) gibt dann eine einfache 0 zurück.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2436798</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2436798</guid><dc:creator><![CDATA[Navy]]></dc:creator><pubDate>Sat, 10 Jan 2015 08:47:50 GMT</pubDate></item><item><title><![CDATA[Reply to atof() on Sat, 10 Jan 2015 09:00:56 GMT]]></title><description><![CDATA[<p>Nein.</p>
<p>&lt;a href= schrieb:</p>
<blockquote>
<p>atof - C++ Reference&quot;&gt;If the first sequence of non-whitespace characters in str does not form a valid floating-point number as just defined, or if no such sequence exists because either str is empty or contains only whitespace characters, no conversion is performed and the function returns 0.0.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2436799</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2436799</guid><dc:creator><![CDATA[DarkShadow44]]></dc:creator><pubDate>Sat, 10 Jan 2015 09:00:56 GMT</pubDate></item><item><title><![CDATA[Reply to atof() on Sat, 10 Jan 2015 09:18:07 GMT]]></title><description><![CDATA[<p>Vielen Dank für die Antwort.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2436800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2436800</guid><dc:creator><![CDATA[Navy]]></dc:creator><pubDate>Sat, 10 Jan 2015 09:18:07 GMT</pubDate></item><item><title><![CDATA[Reply to atof() on Sat, 10 Jan 2015 19:25:25 GMT]]></title><description><![CDATA[<p>Navy schrieb:</p>
<blockquote>
<p>Die Funktion atof(string.c_str()) gibt dann eine einfache 0 zurück.</p>
</blockquote>
<p>Das ist doch schon selbst ein Problem. Woher weißt du hinterher, ob nicht 0 im String stand? Die C++-Funktionen für diese Aufgabe (z.B. alle möglichen Streams - denn wie kommen die Daten eigentlich in deinen String, wenn nicht über einen Stream?) geben erkennbare Benachrichtigungen im Fehlerfall.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2436863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2436863</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sat, 10 Jan 2015 19:25:25 GMT</pubDate></item><item><title><![CDATA[Reply to atof() on Sat, 10 Jan 2015 19:22:37 GMT]]></title><description><![CDATA[<blockquote>
<p>Woher weißt du hinterher, ob nicht 0 im String stand?</p>
</blockquote>
<p>Genau das finde ich eine ziemlich schlechte Designentscheidung... Eigentlich muss man beim verwenden dieser Funktion selbst den string prüfen, bevor man ihn der Funktion füttert. Oder man verwendet halt stod: <a href="http://www.cplusplus.com/reference/string/stod/" rel="nofollow">http://www.cplusplus.com/reference/string/stod/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2436871</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2436871</guid><dc:creator><![CDATA[hardware]]></dc:creator><pubDate>Sat, 10 Jan 2015 19:22:37 GMT</pubDate></item></channel></rss>