<?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[if ( != &amp;quot;ganze zahl&amp;quot; )]]></title><description><![CDATA[<p>Wie ist die Syntax dafür:</p>
<pre><code class="language-cpp">if ( z != /*ganze Zahl*/ ){
}
</code></pre>
<p>Also wenn ich für z 2.5 eingebe, soll ich in die if-Abfrage reinkommen...</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/294269/if-quot-ganze-zahl-quot</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 23:26:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/294269.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Oct 2011 11:24:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to if ( != &amp;quot;ganze zahl&amp;quot; ) on Fri, 21 Oct 2011 11:24:17 GMT]]></title><description><![CDATA[<p>Wie ist die Syntax dafür:</p>
<pre><code class="language-cpp">if ( z != /*ganze Zahl*/ ){
}
</code></pre>
<p>Also wenn ich für z 2.5 eingebe, soll ich in die if-Abfrage reinkommen...</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134021</guid><dc:creator><![CDATA[ganzeZahl]]></dc:creator><pubDate>Fri, 21 Oct 2011 11:24:17 GMT</pubDate></item><item><title><![CDATA[Reply to if ( != &amp;quot;ganze zahl&amp;quot; ) on Fri, 21 Oct 2011 11:27:25 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">if(z==floor(z))
</code></pre>
<p>floor steht in der &lt;cmath&gt; und heißt mit vollem Namen std::floor<br />
.<br />
Oder</p>
<pre><code class="language-cpp">if(z==double(int(z)))//sieht komisch aus
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2134023</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134023</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Fri, 21 Oct 2011 11:27:25 GMT</pubDate></item><item><title><![CDATA[Reply to if ( != &amp;quot;ganze zahl&amp;quot; ) on Fri, 21 Oct 2011 11:31:49 GMT]]></title><description><![CDATA[<p>Die zweite Möglichkeit würde ich mal ausschließen, da das int auch zu klein sein könnte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134024</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134024</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Fri, 21 Oct 2011 11:31:49 GMT</pubDate></item><item><title><![CDATA[Reply to if ( != &amp;quot;ganze zahl&amp;quot; ) on Fri, 21 Oct 2011 11:38:19 GMT]]></title><description><![CDATA[<p>In meinem Fall ist es aber dennoch != astatt ==.<br />
Aber funktioniert, danke!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134027</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134027</guid><dc:creator><![CDATA[ganzeZahl]]></dc:creator><pubDate>Fri, 21 Oct 2011 11:38:19 GMT</pubDate></item><item><title><![CDATA[Reply to if ( != &amp;quot;ganze zahl&amp;quot; ) on Fri, 21 Oct 2011 14:39:18 GMT]]></title><description><![CDATA[<p>Mit einer Prise Google hättest du das auch selber ganz leicht rausfinden können (kam in diesem Forum bestimmt schon 100mal, man findet's aber auch in jedem anderen).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134083</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134083</guid><dc:creator><![CDATA[*Rewind*]]></dc:creator><pubDate>Fri, 21 Oct 2011 14:39:18 GMT</pubDate></item><item><title><![CDATA[Reply to if ( != &amp;quot;ganze zahl&amp;quot; ) on Sat, 22 Oct 2011 17:19:29 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<pre><code class="language-cpp">if(z==double(int(z)))//sieht komisch aus
</code></pre>
</blockquote>
<p>meiner erfahrung nach wird solch ein cast unter umständen auch gerne mal wegoptimiert... sprich if 3.14 == double(int(3.14)) ist gleich true</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134391</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Sat, 22 Oct 2011 17:19:29 GMT</pubDate></item><item><title><![CDATA[Reply to if ( != &amp;quot;ganze zahl&amp;quot; ) on Sat, 22 Oct 2011 18:20:20 GMT]]></title><description><![CDATA[<p>Kannst du einen Compiler nennen, der das macht? Er darfs nämlich nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2134417</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2134417</guid><dc:creator><![CDATA[Michael E.]]></dc:creator><pubDate>Sat, 22 Oct 2011 18:20:20 GMT</pubDate></item></channel></rss>