<?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[Ungenauigkeit bei float]]></title><description><![CDATA[<p>Hi!</p>
<p>Folgendes Problem:</p>
<p>wenn ich 2 float-Varibalen &quot;70.000008&quot; und &quot;70.000000&quot; voneinander subtrahiere, kommt eine sehr kleine Zahl heraus. Wenn ich die noch mit, sagen wir mit 8.0 multipliziere, kommt 6.1035156e-005 heraus. Ich möchte aber einen Wert von 0 haben.<br />
Wie kann ich diese Ungenauigkeit in der 1. Zahl loswerden??</p>
<p>Danke schonmal!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/163350/ungenauigkeit-bei-float</link><generator>RSS for Node</generator><lastBuildDate>Sun, 13 Sep 2026 02:00:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/163350.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Oct 2006 18:43:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ungenauigkeit bei float on Sat, 28 Oct 2006 18:43:54 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Folgendes Problem:</p>
<p>wenn ich 2 float-Varibalen &quot;70.000008&quot; und &quot;70.000000&quot; voneinander subtrahiere, kommt eine sehr kleine Zahl heraus. Wenn ich die noch mit, sagen wir mit 8.0 multipliziere, kommt 6.1035156e-005 heraus. Ich möchte aber einen Wert von 0 haben.<br />
Wie kann ich diese Ungenauigkeit in der 1. Zahl loswerden??</p>
<p>Danke schonmal!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1163293</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1163293</guid><dc:creator><![CDATA[nightrider]]></dc:creator><pubDate>Sat, 28 Oct 2006 18:43:54 GMT</pubDate></item><item><title><![CDATA[Reply to Ungenauigkeit bei float on Sat, 28 Oct 2006 19:02:30 GMT]]></title><description><![CDATA[<p>double benutzen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1163312</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1163312</guid><dc:creator><![CDATA[Antwort]]></dc:creator><pubDate>Sat, 28 Oct 2006 19:02:30 GMT</pubDate></item><item><title><![CDATA[Reply to Ungenauigkeit bei float on Sat, 28 Oct 2006 19:02:43 GMT]]></title><description><![CDATA[<p>Einen angemessenen Datentyp verwenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1163313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1163313</guid><dc:creator><![CDATA[finix]]></dc:creator><pubDate>Sat, 28 Oct 2006 19:02:43 GMT</pubDate></item><item><title><![CDATA[Reply to Ungenauigkeit bei float on Sat, 28 Oct 2006 19:03:41 GMT]]></title><description><![CDATA[<p>Das geht nicht. floats sind nun mal nicht beliebig praezise. doubles auch nicht. Entweder Du nimmst es in Kauf oder schreibst bzw. suchst dir eine Lib die das Problem umgeht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1163316</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1163316</guid><dc:creator><![CDATA[B. Sc. Inf.]]></dc:creator><pubDate>Sat, 28 Oct 2006 19:03:41 GMT</pubDate></item><item><title><![CDATA[Reply to Ungenauigkeit bei float on Sat, 28 Oct 2006 19:28:54 GMT]]></title><description><![CDATA[<p>Das hat aber nichts direkt mit C++ zu tun, hat ja was mit der FPU zutun, und die ist nach IEEE normiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1163335</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1163335</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Sat, 28 Oct 2006 19:28:54 GMT</pubDate></item><item><title><![CDATA[Reply to Ungenauigkeit bei float on Sat, 28 Oct 2006 19:38:38 GMT]]></title><description><![CDATA[<p>Ja also bei double ist genau das gleiche Problem. In kauf nehmen kann ich das nicht, weil 6.1035156e-005 nunmal ganz was anderes wie 0 ist...<br />
Aber egal, mir wird schon was einfallen.<br />
Also danke euch allen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1163346</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1163346</guid><dc:creator><![CDATA[nightrider]]></dc:creator><pubDate>Sat, 28 Oct 2006 19:38:38 GMT</pubDate></item><item><title><![CDATA[Reply to Ungenauigkeit bei float on Sat, 28 Oct 2006 20:16:57 GMT]]></title><description><![CDATA[<p>Lesen bildet... schau dir nochmal Antwort 2 und insbesondere 3 an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1163368</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1163368</guid><dc:creator><![CDATA[finix]]></dc:creator><pubDate>Sat, 28 Oct 2006 20:16:57 GMT</pubDate></item><item><title><![CDATA[Reply to Ungenauigkeit bei float on Sat, 28 Oct 2006 22:37:15 GMT]]></title><description><![CDATA[<p>Und was würdest du so als angemessenen Datentyp bezeichnen? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1163460</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1163460</guid><dc:creator><![CDATA[nightrider]]></dc:creator><pubDate>Sat, 28 Oct 2006 22:37:15 GMT</pubDate></item><item><title><![CDATA[Reply to Ungenauigkeit bei float on Sat, 28 Oct 2006 22:41:31 GMT]]></title><description><![CDATA[<p>Das Problem ist doch eher: wieso sollte die Differenz zweier ungleicher Zahlen ==0 sein? Als welcher Berechnung kommt die 70.000008 ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1163463</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1163463</guid><dc:creator><![CDATA[Werner Salomon]]></dc:creator><pubDate>Sat, 28 Oct 2006 22:41:31 GMT</pubDate></item><item><title><![CDATA[Reply to Ungenauigkeit bei float on Sat, 28 Oct 2006 22:42:51 GMT]]></title><description><![CDATA[<p>Hem, du könntest versuchen eine Library zu suchen, die Fixedpoint Typen anbietet. Kenne jetzt aber leider spontan keine.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1163464</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1163464</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Sat, 28 Oct 2006 22:42:51 GMT</pubDate></item></channel></rss>