<?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[string zu Zahl überlauf]]></title><description><![CDATA[<p>Kann ich eine Exception auslösen, wenn die Zahl im String zu groß/klein für den Datentyp ist?</p>
<pre><code class="language-cpp">string Zahl(&quot;4.94e9999&quot;);
   stringstream Str;
   Str.exceptions(std::ios_base::failbit);
   Str &lt;&lt; Zahl;
   long double d;
   Str &gt;&gt; d;
</code></pre>
<p>d wird ohne exception einfach inf.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/131372/string-zu-zahl-überlauf</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 03:02:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/131372.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Jan 2006 00:29:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to string zu Zahl überlauf on Tue, 03 Jan 2006 00:29:33 GMT]]></title><description><![CDATA[<p>Kann ich eine Exception auslösen, wenn die Zahl im String zu groß/klein für den Datentyp ist?</p>
<pre><code class="language-cpp">string Zahl(&quot;4.94e9999&quot;);
   stringstream Str;
   Str.exceptions(std::ios_base::failbit);
   Str &lt;&lt; Zahl;
   long double d;
   Str &gt;&gt; d;
</code></pre>
<p>d wird ohne exception einfach inf.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/955265</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/955265</guid><dc:creator><![CDATA[grr]]></dc:creator><pubDate>Tue, 03 Jan 2006 00:29:33 GMT</pubDate></item></channel></rss>