<?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[float problem]]></title><description><![CDATA[<p>hi,</p>
<p>ich habe das Problem, dass durch das Arbeiten mit Floats manchmal komische Werte rauskommen.<br />
Simple Addition von 200.0000 + 123.000 ergeben dann 322.99392323. Kann ich das irgendwie unterbinden?</p>
<p>(BITTE kommt nicht mit round. da auch teilweise mit fließkommazahlen gearbeitet wird)</p>
<p>:xmas1:</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/168477/float-problem</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 12:10:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/168477.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Dec 2006 23:06:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to float problem on Fri, 22 Dec 2006 23:06:30 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>ich habe das Problem, dass durch das Arbeiten mit Floats manchmal komische Werte rauskommen.<br />
Simple Addition von 200.0000 + 123.000 ergeben dann 322.99392323. Kann ich das irgendwie unterbinden?</p>
<p>(BITTE kommt nicht mit round. da auch teilweise mit fließkommazahlen gearbeitet wird)</p>
<p>:xmas1:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1196841</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1196841</guid><dc:creator><![CDATA[float JayJay]]></dc:creator><pubDate>Fri, 22 Dec 2006 23:06:30 GMT</pubDate></item><item><title><![CDATA[Reply to float problem on Sat, 23 Dec 2006 00:05:07 GMT]]></title><description><![CDATA[<p>Fliesskommazahlen werden von der FPU behandelt, und die rechnet nunmal leider nicht genau. Es sind Annhärungs-/Schetzwerte. Das ist in jeder Sprache der Fall, die die FPU benutzt (auch z.B. in Java).</p>
<p>Wenn dir genaue Werte nach dem Komma wichtig sind, mußt du Festkommazahlen (Fixpoints) benutzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1196853</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1196853</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Sat, 23 Dec 2006 00:05:07 GMT</pubDate></item><item><title><![CDATA[Reply to float problem on Sat, 23 Dec 2006 00:06:23 GMT]]></title><description><![CDATA[<p>kannste nicht doubles anstatt floats nehmen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1196855</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1196855</guid><dc:creator><![CDATA[ten]]></dc:creator><pubDate>Sat, 23 Dec 2006 00:06:23 GMT</pubDate></item><item><title><![CDATA[Reply to float problem on Sat, 23 Dec 2006 02:22:45 GMT]]></title><description><![CDATA[<p>Bei double ist das leider auch der fall, oder sollte das hier nicht der fall sein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1196881</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1196881</guid><dc:creator><![CDATA[JayJay]]></dc:creator><pubDate>Sat, 23 Dec 2006 02:22:45 GMT</pubDate></item><item><title><![CDATA[Reply to float problem on Sat, 23 Dec 2006 03:00:43 GMT]]></title><description><![CDATA[<p>floats &amp; doubles kann man nicht nehmen wenn man genaue Werte braucht, also 1.0 oder 1.5 oder sowas. eine mögliche abhilfe sind manchmal fixkomma zahlen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1196882</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1196882</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Sat, 23 Dec 2006 03:00:43 GMT</pubDate></item><item><title><![CDATA[Reply to float problem on Sat, 23 Dec 2006 17:41:23 GMT]]></title><description><![CDATA[<p>Naja, es muss ja alternativen zu double oder floats geben!! besonders unter c++. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
<p>:xmas1:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1197071</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1197071</guid><dc:creator><![CDATA[JayJay]]></dc:creator><pubDate>Sat, 23 Dec 2006 17:41:23 GMT</pubDate></item><item><title><![CDATA[Reply to float problem on Sat, 23 Dec 2006 17:46:01 GMT]]></title><description><![CDATA[<p>Was willst Du denn machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1197073</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1197073</guid><dc:creator><![CDATA[asdfasdfasdf]]></dc:creator><pubDate>Sat, 23 Dec 2006 17:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to float problem on Sat, 23 Dec 2006 17:46:27 GMT]]></title><description><![CDATA[<p>Ja, long zum Beispiel.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1197074</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1197074</guid><dc:creator><![CDATA[Michael E.]]></dc:creator><pubDate>Sat, 23 Dec 2006 17:46:27 GMT</pubDate></item><item><title><![CDATA[Reply to float problem on Sat, 23 Dec 2006 18:05:30 GMT]]></title><description><![CDATA[<p>Ja, entweder du nimmst dir int oder long. Das sind die Alternativen. Denn letztendlich sind Fixpoints nur Zahlen, wo du selbst die Kommastelle bestimmst. Ein Komma ist ja nur eine Darstellung die nicht das Rechnen beeinflusst. Wenn du es z.B. in einer Textkonsole ausgibst, wird nur in dem Moment das Komma zwischengeschaltet.</p>
<p>Es gibt auch Fixpoint-Libs. Oder du baust dir mit Klassen und Operator-Überladung deine eignene Fixpoints.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1197078</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1197078</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Sat, 23 Dec 2006 18:05:30 GMT</pubDate></item><item><title><![CDATA[Reply to float problem on Sat, 23 Dec 2006 18:14:01 GMT]]></title><description><![CDATA[<p>Dein Problem ist eher trivial.</p>
<p>Aus exp(phi(lim-&gt;0)) folgt: int(exp(k^2-Amd-oder-Intel),x=1..Ö), womit die Natur deiner Fließkommazahlen begründet wäre.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1197085</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1197085</guid><dc:creator><![CDATA[Float]]></dc:creator><pubDate>Sat, 23 Dec 2006 18:14:01 GMT</pubDate></item></channel></rss>