<?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[FloatToInt]]></title><description><![CDATA[<p>Ich möchte bei einer Float Zahl die Nachkommastellen abschneiden und dann oin eine Int schreiben.</p>
<pre><code class="language-cpp">StrToIn(FloatTtStrF (d,ffNumber,8,0))
</code></pre>
<p>geht aber leider net <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /><br />
brauche hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/184839/floattoint</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 07:26:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/184839.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Jun 2007 17:12:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FloatToInt on Tue, 19 Jun 2007 17:13:18 GMT]]></title><description><![CDATA[<p>Ich möchte bei einer Float Zahl die Nachkommastellen abschneiden und dann oin eine Int schreiben.</p>
<pre><code class="language-cpp">StrToIn(FloatTtStrF (d,ffNumber,8,0))
</code></pre>
<p>geht aber leider net <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /><br />
brauche hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1309286</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1309286</guid><dc:creator><![CDATA[Stratege993]]></dc:creator><pubDate>Tue, 19 Jun 2007 17:13:18 GMT</pubDate></item><item><title><![CDATA[Reply to FloatToInt on Tue, 19 Jun 2007 17:21:53 GMT]]></title><description><![CDATA[<p>OK es geht doch <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /><br />
also brauche keine hilfe mehr</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1309294</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1309294</guid><dc:creator><![CDATA[Stratege993]]></dc:creator><pubDate>Tue, 19 Jun 2007 17:21:53 GMT</pubDate></item><item><title><![CDATA[Reply to FloatToInt on Tue, 19 Jun 2007 17:39:05 GMT]]></title><description><![CDATA[<p>Das ganze Gewurschtel kannst Du Dir sparen. Wenn Du einer Integervariablen einen Fließkommawert zuweist, werden die Nachkommastellen sowieso einfach abgeschnitten.</p>
<p>Grüße Joe_M.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1309305</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1309305</guid><dc:creator><![CDATA[zufaulzumeinloggen]]></dc:creator><pubDate>Tue, 19 Jun 2007 17:39:05 GMT</pubDate></item><item><title><![CDATA[Reply to FloatToInt on Tue, 19 Jun 2007 18:44:12 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Also das Gleiche ist es nicht :</p>
<pre><code class="language-cpp">float d = 2.8;
int   TestInt = StrToInt(FloatToStrF (d,ffNumber,8,0));
</code></pre>
<p><strong>TestInt -&gt; 3</strong></p>
<pre><code class="language-cpp">float d = 2.8;
int   TestInt = d;
</code></pre>
<p><strong>TestInt -&gt; 2</strong></p>
<p>Nash</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1309347</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1309347</guid><dc:creator><![CDATA[Nash]]></dc:creator><pubDate>Tue, 19 Jun 2007 18:44:12 GMT</pubDate></item><item><title><![CDATA[Reply to FloatToInt on Wed, 20 Jun 2007 07:17:59 GMT]]></title><description><![CDATA[<p>Dann passt seine gepostete Lösung aber nicht zur Problembeschreibung:</p>
<p>Stratege993 schrieb:</p>
<blockquote>
<p>Ich möchte bei einer Float Zahl die Nachkommastellen abschneiden und dann oin eine Int schreiben.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1309614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1309614</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 20 Jun 2007 07:17:59 GMT</pubDate></item><item><title><![CDATA[Reply to FloatToInt on Wed, 20 Jun 2007 10:10:03 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Das sollte auch keine Kritik sein.<br />
Ich wollte nur darauf hinweisen, das es nicht das Gleiche ist.</p>
<p>Nash</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1309747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1309747</guid><dc:creator><![CDATA[Nash]]></dc:creator><pubDate>Wed, 20 Jun 2007 10:10:03 GMT</pubDate></item><item><title><![CDATA[Reply to FloatToInt on Wed, 20 Jun 2007 10:20:52 GMT]]></title><description><![CDATA[<p>Wenn du noch eine Rundung dazu haben willst machst du einfach folgendes:</p>
<pre><code class="language-cpp">float a=2.3;

int b=a+0.5; // b = 2

a=2.8;
b=a+0.5; // b = 3
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1309753</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1309753</guid><dc:creator><![CDATA[rean]]></dc:creator><pubDate>Wed, 20 Jun 2007 10:20:52 GMT</pubDate></item><item><title><![CDATA[Reply to FloatToInt on Wed, 20 Jun 2007 10:38:28 GMT]]></title><description><![CDATA[<p>Nash schrieb:</p>
<blockquote>
<p>Das sollte auch keine Kritik sein.</p>
</blockquote>
<p>Falls Du mich damit meinst, hab ich das auch nicht so aufgefasst.</p>
<p>Vielleicht wollte er doch runden, hat es aber 'unglücklich' formuliert...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1309766</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1309766</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 20 Jun 2007 10:38:28 GMT</pubDate></item></channel></rss>