<?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[ostringstream +- Null, +- Unendlich]]></title><description><![CDATA[<p>Hallo, ich brauch mal wieder euere Hilfe.</p>
<p>Ich verwende ostringstreams, um floats in Zeichenketten umzuwandeln. Allerdings wird nicht zwischen plus und minus Unendlich, bzw. zwischen +/- 0 unterschieden, was für mich aber wichtig wäre, sondern gar kein Vorzeichen (also implizit +) angezeigt.<br />
Mit den Flags komme ich nicht weiter.</p>
<p>Gibt es da einen Weg, das +/- davor gestellt zu kriegen?<br />
Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/249933/ostringstream-null-unendlich</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 06:52:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/249933.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Sep 2009 09:52:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ostringstream +- Null, +- Unendlich on Mon, 14 Sep 2009 09:52:10 GMT]]></title><description><![CDATA[<p>Hallo, ich brauch mal wieder euere Hilfe.</p>
<p>Ich verwende ostringstreams, um floats in Zeichenketten umzuwandeln. Allerdings wird nicht zwischen plus und minus Unendlich, bzw. zwischen +/- 0 unterschieden, was für mich aber wichtig wäre, sondern gar kein Vorzeichen (also implizit +) angezeigt.<br />
Mit den Flags komme ich nicht weiter.</p>
<p>Gibt es da einen Weg, das +/- davor gestellt zu kriegen?<br />
Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1778054</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1778054</guid><dc:creator><![CDATA[Becker]]></dc:creator><pubDate>Mon, 14 Sep 2009 09:52:10 GMT</pubDate></item><item><title><![CDATA[Reply to ostringstream +- Null, +- Unendlich on Mon, 14 Sep 2009 10:09:14 GMT]]></title><description><![CDATA[<p>wenn ich dich richtig verstehe, könntest du ja einfach prüfen ob der float wert größer oder kleiner null ist und entsprechend ein + oder - zum ostringstream hinzufügen.</p>
<p>jperl</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1778066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1778066</guid><dc:creator><![CDATA[jperl]]></dc:creator><pubDate>Mon, 14 Sep 2009 10:09:14 GMT</pubDate></item><item><title><![CDATA[Reply to ostringstream +- Null, +- Unendlich on Mon, 14 Sep 2009 10:14:07 GMT]]></title><description><![CDATA[<p>0 ist 0 und nicht plus oder minus. f'`8k</p>
<p><div class="plugin-markdown"><input type="checkbox" id="checkbox241752" /><label for="checkbox241752"></label></div><a href="http://tggc.tg.funpic.de/index.php?cat=8&amp;page=5" rel="nofollow">Autocogito</a></p>
<p>Gruß, TGGC (<a href="http://www.gamestar.de/index.cfm?pid=819&amp;pk=12279" rel="nofollow">Was Gamestar sagt...</a>)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1778071</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1778071</guid><dc:creator><![CDATA[TGGC]]></dc:creator><pubDate>Mon, 14 Sep 2009 10:14:07 GMT</pubDate></item><item><title><![CDATA[Reply to ostringstream +- Null, +- Unendlich on Mon, 14 Sep 2009 10:19:15 GMT]]></title><description><![CDATA[<p>Werde ich wohl so machen müssen, jperl, Danke.</p>
<p>TGGC: Bei IEEE754-floats nicht unbedingt, und das weißt du. Held.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1778077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1778077</guid><dc:creator><![CDATA[Becker]]></dc:creator><pubDate>Mon, 14 Sep 2009 10:19:15 GMT</pubDate></item><item><title><![CDATA[Reply to ostringstream +- Null, +- Unendlich on Mon, 14 Sep 2009 10:34:47 GMT]]></title><description><![CDATA[<p>Da 0 == -0 == +0 wird das mit dem Vergleich aber nicht funktionieren. f'`8k</p>
<p><div class="plugin-markdown"><input type="checkbox" id="checkbox241753" /><label for="checkbox241753"></label></div><a href="http://tggc.tg.funpic.de/index.php?cat=8&amp;page=5" rel="nofollow">Autocogito</a></p>
<p>Gruß, TGGC (<a href="http://www.gamestar.de/index.cfm?pid=819&amp;pk=12279" rel="nofollow">Was Gamestar sagt...</a>)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1778080</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1778080</guid><dc:creator><![CDATA[TGGC]]></dc:creator><pubDate>Mon, 14 Sep 2009 10:34:47 GMT</pubDate></item><item><title><![CDATA[Reply to ostringstream +- Null, +- Unendlich on Mon, 14 Sep 2009 12:02:58 GMT]]></title><description><![CDATA[<p>Mit <code>std::showpos</code> kannst du dir das Vorzeichen anzeigen lassen. Wozu brauchst du die Abfrage für +/- 0?</p>
<p>Um auf Unendlichkeit zu prüfen, verwende <code>std::numeric_limits&lt;float&gt;::infinity()</code> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1778158</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1778158</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Mon, 14 Sep 2009 12:02:58 GMT</pubDate></item><item><title><![CDATA[Reply to ostringstream +- Null, +- Unendlich on Mon, 14 Sep 2009 12:40:30 GMT]]></title><description><![CDATA[<p>Das mit der Unendlich keit mache ich jetzt so:</p>
<pre><code class="language-cpp">if(ret == &quot;Infinity&quot; &amp;&amp; fl &lt; 0)
    ret = &quot;-Infinity&quot;;
</code></pre>
<p>Bei der Null hast du ja Recht, TGGC, da verwende ich dann Nexus Lösung.<br />
Vielen Dank, genau was ich suchte!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1778189</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1778189</guid><dc:creator><![CDATA[Becker]]></dc:creator><pubDate>Mon, 14 Sep 2009 12:40:30 GMT</pubDate></item></channel></rss>