<?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[Dezimalstellen?]]></title><description><![CDATA[<p>Wie kann man eigentlich einem Programm sagen</p>
<p>wenn kein rundes ergebnis raus kommt also das ergebnis dezimalstellen hat dann machst du .....</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/275414/dezimalstellen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 01:50:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/275414.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Oct 2010 10:17:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dezimalstellen? on Thu, 14 Oct 2010 10:17:13 GMT]]></title><description><![CDATA[<p>Wie kann man eigentlich einem Programm sagen</p>
<p>wenn kein rundes ergebnis raus kommt also das ergebnis dezimalstellen hat dann machst du .....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1965454</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1965454</guid><dc:creator><![CDATA[zzzxxyy1]]></dc:creator><pubDate>Thu, 14 Oct 2010 10:17:13 GMT</pubDate></item><item><title><![CDATA[Reply to Dezimalstellen? on Thu, 14 Oct 2010 11:14:18 GMT]]></title><description><![CDATA[<p><code>if (a % b) ...</code></p>
<p>edit: Das war womöglich nicht das was du suchst. Daher: Ergebnis wovon? Datentypen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1965484</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1965484</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 14 Oct 2010 11:14:18 GMT</pubDate></item><item><title><![CDATA[Reply to Dezimalstellen? on Thu, 14 Oct 2010 11:14:43 GMT]]></title><description><![CDATA[<p>wie darf ich das verstehen?</p>
<p>variable a % variable b?</p>
<p>was macht das genau?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1965487</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1965487</guid><dc:creator><![CDATA[zzzxxyy1]]></dc:creator><pubDate>Thu, 14 Oct 2010 11:14:43 GMT</pubDate></item><item><title><![CDATA[Reply to Dezimalstellen? on Thu, 14 Oct 2010 11:22:46 GMT]]></title><description><![CDATA[<p>Das ist der Rest einer Ganzzahldivision. Da ich nicht weiß was du willst, habe ich einfach mal geraten, dass du dies meinst.</p>
<p>Allgemein könntest du auch so eine beliebige (Fließkomma-)Zahl a auf Ganzzahligkeit prüfen:</p>
<pre><code class="language-cpp">if (a == static_cast&lt;int&gt;(a))
</code></pre>
<p>Falls a Ergebnis einer Rechnung ist, wird da aber fast nie exakt eine Ganzzahl rauskommen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1965490</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1965490</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 14 Oct 2010 11:22:46 GMT</pubDate></item><item><title><![CDATA[Reply to Dezimalstellen? on Thu, 14 Oct 2010 11:23:13 GMT]]></title><description><![CDATA[<p>% ist der Modulo-Operator<br />
Damit wird bei der Integer-Division der Rest ausgerechet.</p>
<p>Beispiel:</p>
<p>73 / 10 = 7<br />
73 % 10 = 3</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1965491</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1965491</guid><dc:creator><![CDATA[Marthog]]></dc:creator><pubDate>Thu, 14 Oct 2010 11:23:13 GMT</pubDate></item></channel></rss>