<?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[int-&amp;gt;float-&amp;gt;int  von int nach float und von float nach int]]></title><description><![CDATA[<p>Habe folgende Frage:</p>
<p>Ich setze eine Ganzzahl Integer auf einen float.<br />
Anschließend setzte ich den float wieder auf eine Ganzzahl:</p>
<pre><code class="language-cpp">int    Ganz=3; 
float FLOAT=Ganz;
int   Ganz2=FLOAT;

(Ganz2==Ganz)  ?????????????????????
</code></pre>
<p>Nun meine Frage bekomme ich auf jedem System wieder den richtigen Ganzzahlwert heraus.<br />
Oder kann es da Rundungsfehler geben?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/125082/int-gt-float-gt-int-von-int-nach-float-und-von-float-nach-int</link><generator>RSS for Node</generator><lastBuildDate>Mon, 24 Aug 2026 04:30:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/125082.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Nov 2005 10:56:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to int-&amp;gt;float-&amp;gt;int  von int nach float und von float nach int on Thu, 03 Nov 2005 10:56:29 GMT]]></title><description><![CDATA[<p>Habe folgende Frage:</p>
<p>Ich setze eine Ganzzahl Integer auf einen float.<br />
Anschließend setzte ich den float wieder auf eine Ganzzahl:</p>
<pre><code class="language-cpp">int    Ganz=3; 
float FLOAT=Ganz;
int   Ganz2=FLOAT;

(Ganz2==Ganz)  ?????????????????????
</code></pre>
<p>Nun meine Frage bekomme ich auf jedem System wieder den richtigen Ganzzahlwert heraus.<br />
Oder kann es da Rundungsfehler geben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907173</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907173</guid><dc:creator><![CDATA[Bigbrother]]></dc:creator><pubDate>Thu, 03 Nov 2005 10:56:29 GMT</pubDate></item><item><title><![CDATA[Reply to int-&amp;gt;float-&amp;gt;int  von int nach float und von float nach int on Thu, 03 Nov 2005 11:01:14 GMT]]></title><description><![CDATA[<p>Bei so kleinen Zahlen klappt das noch, aber wenn du dich an der Grenze des Wertebereiches bewegst, könnten Rundungsfehler auftreten (int hat mehr darstellbare Ziffern als float).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907176</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907176</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 03 Nov 2005 11:01:14 GMT</pubDate></item><item><title><![CDATA[Reply to int-&amp;gt;float-&amp;gt;int  von int nach float und von float nach int on Thu, 03 Nov 2005 11:05:11 GMT]]></title><description><![CDATA[<p>Grundsätzlich sollte man von Rundungsfehlern ausgehen und diese beachten. Damit ist man auf der sichereren Seite.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907179</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907179</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Thu, 03 Nov 2005 11:05:11 GMT</pubDate></item><item><title><![CDATA[Reply to int-&amp;gt;float-&amp;gt;int  von int nach float und von float nach int on Thu, 03 Nov 2005 13:09:37 GMT]]></title><description><![CDATA[<p>Rundungsfehler wird es garantiert keine geben. Es wird nämlich nirgendwo gerundet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907312</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907312</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Thu, 03 Nov 2005 13:09:37 GMT</pubDate></item><item><title><![CDATA[Reply to int-&amp;gt;float-&amp;gt;int  von int nach float und von float nach int on Thu, 03 Nov 2005 13:14:09 GMT]]></title><description><![CDATA[<p>Da hat jemand die Goldwage dabei *gg* <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/907318</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907318</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Thu, 03 Nov 2005 13:14:09 GMT</pubDate></item></channel></rss>