<?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[runden]]></title><description><![CDATA[<p>Hallo!</p>
<p>ich habe gerade ein problem mit runden. und zwar möchte ich einfach einige Zahlen auf null Nachkommastellen runden. Da müsste es doch bereite eine Funktion geben. Ich habe bereits hier nachgeschaut:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39342.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39342.html</a><br />
jedoch weiß ich nicht welche Standardbibliothek ich einbinden muss???<br />
Hoffe es kann mir jemand helfen!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/121996/runden</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 23:39:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/121996.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Sep 2005 11:14:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to runden on Thu, 29 Sep 2005 11:14:40 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>ich habe gerade ein problem mit runden. und zwar möchte ich einfach einige Zahlen auf null Nachkommastellen runden. Da müsste es doch bereite eine Funktion geben. Ich habe bereits hier nachgeschaut:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39342.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39342.html</a><br />
jedoch weiß ich nicht welche Standardbibliothek ich einbinden muss???<br />
Hoffe es kann mir jemand helfen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/882840</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/882840</guid><dc:creator><![CDATA[Maria123]]></dc:creator><pubDate>Thu, 29 Sep 2005 11:14:40 GMT</pubDate></item><item><title><![CDATA[Reply to runden on Thu, 29 Sep 2005 11:30:34 GMT]]></title><description><![CDATA[<p>//edit</p>
<blockquote>
<p>#include math.h</p>
</blockquote>
<p>Die brauchst dazu, dann kannst dir die Round-Fkt. da rauskopieren</p>
]]></description><link>https://www.c-plusplus.net/forum/post/882843</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/882843</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Thu, 29 Sep 2005 11:30:34 GMT</pubDate></item><item><title><![CDATA[Reply to runden on Thu, 29 Sep 2005 23:01:37 GMT]]></title><description><![CDATA[<p>#include &lt;iostream&gt;<br />
#include &lt;string&gt;<br />
using namespace std;</p>
<p>int main()<br />
{<br />
int erg;<br />
double zahl;</p>
<p>cin &gt;&gt; zahl;</p>
<p>erg=zahl+0.5;</p>
<p>cout &lt;&lt; erg;</p>
<p>return 0;<br />
}</p>
<p>so gehts auch, einfach die zahl, die zu runden ist, um 0.5 erhöhen, und als int casten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/883297</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/883297</guid><dc:creator><![CDATA[_mika_]]></dc:creator><pubDate>Thu, 29 Sep 2005 23:01:37 GMT</pubDate></item><item><title><![CDATA[Reply to runden on Fri, 30 Sep 2005 07:49:48 GMT]]></title><description><![CDATA[<p><em>mika</em> schrieb:</p>
<blockquote>
<p>so gehts auch, einfach die zahl, die zu runden ist, um 0.5 erhöhen, und als int casten.</p>
</blockquote>
<p>Nicht ganz. Für Zahlen mit negativem Vorzeichen liegst Du immer 1 daneben. Vor dem Casten müsste man noch floor machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/883384</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/883384</guid><dc:creator><![CDATA[7H3 N4C3R]]></dc:creator><pubDate>Fri, 30 Sep 2005 07:49:48 GMT</pubDate></item></channel></rss>