<?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[Überlauf!!!]]></title><description><![CDATA[<p>Hallo, ich habe da ein Problem!</p>
<p>Ich möchte einen berechneten Wert in der Funktion OnDraw ausgeben.<br />
Dazu muss ich den double-Wert zunächst umwandeln in einen String und dann<br />
mittels pDC-&gt;TextOut() ausgeben.<br />
das sieht dann ungefähr so aus und klappt auch ganz gut</p>
<pre><code class="language-cpp">string.Format(&quot;%f&quot;,irgendwas-&gt;dt); 
	pDC-&gt;TextOut(120, 173, string);
</code></pre>
<p>Allerdings habe ich manchmal eine ausgabe auf dem bildschirm der gestalt:<br />
-1.#IND00</p>
<p>ich habe meine Werte zuvor alle auf Überlauf überprüft, daran sollte es also nicht liegen.<br />
Weiß da jemand Rat???</p>
<p>und wie schaff ich es, dass er mir nur 2 Kommastellen ausgiebt???</p>
<p>Dank im voaus!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/51840/überlauf</link><generator>RSS for Node</generator><lastBuildDate>Sun, 31 May 2026 15:58:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/51840.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Oct 2003 11:19:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Überlauf!!! on Tue, 14 Oct 2003 11:19:08 GMT]]></title><description><![CDATA[<p>Hallo, ich habe da ein Problem!</p>
<p>Ich möchte einen berechneten Wert in der Funktion OnDraw ausgeben.<br />
Dazu muss ich den double-Wert zunächst umwandeln in einen String und dann<br />
mittels pDC-&gt;TextOut() ausgeben.<br />
das sieht dann ungefähr so aus und klappt auch ganz gut</p>
<pre><code class="language-cpp">string.Format(&quot;%f&quot;,irgendwas-&gt;dt); 
	pDC-&gt;TextOut(120, 173, string);
</code></pre>
<p>Allerdings habe ich manchmal eine ausgabe auf dem bildschirm der gestalt:<br />
-1.#IND00</p>
<p>ich habe meine Werte zuvor alle auf Überlauf überprüft, daran sollte es also nicht liegen.<br />
Weiß da jemand Rat???</p>
<p>und wie schaff ich es, dass er mir nur 2 Kommastellen ausgiebt???</p>
<p>Dank im voaus!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/371885</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/371885</guid><dc:creator><![CDATA[Croove-Balg]]></dc:creator><pubDate>Tue, 14 Oct 2003 11:19:08 GMT</pubDate></item><item><title><![CDATA[Reply to Überlauf!!! on Tue, 14 Oct 2003 11:25:50 GMT]]></title><description><![CDATA[<p>-1.#IND00 bringe ich irgendwie mit Division durch null in Verbindung. Fängst du diesen Fall auch ab?</p>
<p>string.Format(&quot;%.3f&quot;,irgendwas-&gt;dt); //Und schon sinds nur noch 3 Nachkomma..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/371893</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/371893</guid><dc:creator><![CDATA[TheBigW]]></dc:creator><pubDate>Tue, 14 Oct 2003 11:25:50 GMT</pubDate></item><item><title><![CDATA[Reply to Überlauf!!! on Tue, 14 Oct 2003 11:54:18 GMT]]></title><description><![CDATA[<p>Danke für die schnelle Antwort! Und sie hat mir auch noch weitergeholfen!!</p>
<p>Wunderbar!!!</p>
<p>DANKE!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/371942</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/371942</guid><dc:creator><![CDATA[Croove-Balg]]></dc:creator><pubDate>Tue, 14 Oct 2003 11:54:18 GMT</pubDate></item></channel></rss>