<?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 Part von einer float?]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>wie kann ich den ganzzahligen Teil einer float auslesen?</p>
<p>aus 3.1415 mache 3<br />
aus -3.1415 mache -3</p>
<p>ceil() und floor() erfüllen diesen Zweck nur teilweise oder?</p>
<p>Gruß<br />
Scarabol</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/241469/int-part-von-einer-float</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 11:08:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/241469.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 May 2009 22:17:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Int Part von einer float? on Wed, 20 May 2009 22:17:50 GMT]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>wie kann ich den ganzzahligen Teil einer float auslesen?</p>
<p>aus 3.1415 mache 3<br />
aus -3.1415 mache -3</p>
<p>ceil() und floor() erfüllen diesen Zweck nur teilweise oder?</p>
<p>Gruß<br />
Scarabol</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1713554</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1713554</guid><dc:creator><![CDATA[Scarabol]]></dc:creator><pubDate>Wed, 20 May 2009 22:17:50 GMT</pubDate></item><item><title><![CDATA[Reply to Int Part von einer float? on Wed, 20 May 2009 22:24:40 GMT]]></title><description><![CDATA[<p>Für das was du willst reicht es den Wert in ein int umzuwandeln, dabeiw erden die Nachkommasteleln abgeschnitten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1713555</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1713555</guid><dc:creator><![CDATA[Xebov]]></dc:creator><pubDate>Wed, 20 May 2009 22:24:40 GMT</pubDate></item><item><title><![CDATA[Reply to Int Part von einer float? on Wed, 20 May 2009 22:31:21 GMT]]></title><description><![CDATA[<p>ja, nur teilweise.<br />
hier hat sich einer dazu gedanken gemacht und ein paar funktionen gebaut.<br />
ich nehme an, du suchst seine funktion trunc. <a href="http://www.cplusplus.com/forum/articles/3638/" rel="nofollow">http://www.cplusplus.com/forum/articles/3638/</a><br />
edit: ist aber unfug. Xebovs weg ist viel besser.<br />
standard 4.9.1 sagt, daß dabei einfach nur die nachkommastellen abgeschnitten werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1713556</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1713556</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Wed, 20 May 2009 22:31:21 GMT</pubDate></item><item><title><![CDATA[Reply to Int Part von einer float? on Wed, 20 May 2009 22:49:33 GMT]]></title><description><![CDATA[<p>Alles klar danke Leute,</p>
<p>ich benutze jetzt einfach<br />
int int_part = static_cast&lt;int&gt;(float_var);</p>
<p>Gruß<br />
Scarabol</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1713557</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1713557</guid><dc:creator><![CDATA[Scarabol]]></dc:creator><pubDate>Wed, 20 May 2009 22:49:33 GMT</pubDate></item></channel></rss>