<?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[Zahl im bestimmten Format ausgeben]]></title><description><![CDATA[<p>hallo,<br />
ich programmiere mit Turbo C++ und möchte eingelesene zahlen immer im format 9999.99 ausgeben lassen. dabei sollen auch die führenden nullen und die nullen nach dem komma ausgegeben werden (z.B. 0099.00).<br />
Kann mir da jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/275812/zahl-im-bestimmten-format-ausgeben</link><generator>RSS for Node</generator><lastBuildDate>Wed, 26 Aug 2026 16:16:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/275812.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Oct 2010 12:26:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zahl im bestimmten Format ausgeben on Thu, 21 Oct 2010 12:26:53 GMT]]></title><description><![CDATA[<p>hallo,<br />
ich programmiere mit Turbo C++ und möchte eingelesene zahlen immer im format 9999.99 ausgeben lassen. dabei sollen auch die führenden nullen und die nullen nach dem komma ausgegeben werden (z.B. 0099.00).<br />
Kann mir da jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1968474</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1968474</guid><dc:creator><![CDATA[siedlerkiller2.0]]></dc:creator><pubDate>Thu, 21 Oct 2010 12:26:53 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl im bestimmten Format ausgeben on Thu, 21 Oct 2010 12:32:29 GMT]]></title><description><![CDATA[<p><a href="http://www.cplusplus.com/reference/iostream/manipulators/fixed/" rel="nofollow">http://www.cplusplus.com/reference/iostream/manipulators/fixed/</a><br />
<a href="http://www.cplusplus.com/reference/iostream/manipulators/setprecision/" rel="nofollow">http://www.cplusplus.com/reference/iostream/manipulators/setprecision/</a><br />
<a href="http://www.cplusplus.com/reference/iostream/manipulators/setw/" rel="nofollow">http://www.cplusplus.com/reference/iostream/manipulators/setw/</a><br />
<a href="http://www.cplusplus.com/reference/iostream/manipulators/setfill/" rel="nofollow">http://www.cplusplus.com/reference/iostream/manipulators/setfill/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1968478</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1968478</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 21 Oct 2010 12:32:29 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl im bestimmten Format ausgeben on Thu, 21 Oct 2010 12:41:02 GMT]]></title><description><![CDATA[<p>mit diesen erläuterungen komm ich irgendwie nicht zurecht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1968488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1968488</guid><dc:creator><![CDATA[siedlerkiller2.0]]></dc:creator><pubDate>Thu, 21 Oct 2010 12:41:02 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl im bestimmten Format ausgeben on Thu, 21 Oct 2010 12:53:15 GMT]]></title><description><![CDATA[<p>Und ich weiß &quot;irgendwie&quot; nicht, wieso du damit nicht zurecht kommst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1968494</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1968494</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 21 Oct 2010 12:53:15 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl im bestimmten Format ausgeben on Thu, 21 Oct 2010 12:56:48 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">double zahl = 23.129;
    cout &lt;&lt; setfill('0') &lt;&lt; fixed &lt;&lt; setprecision(2) &lt;&lt; setw(7) &lt;&lt; zahl &lt;&lt; endl;
</code></pre>
<p>std::setfill, std::setprecision und std::setw erfordern #include &lt;iomanip&gt;. setw musst Du jedesmal vor der Ausgabe der Zahl aufrufen, die anderen reichen einmal. Achtung: die Manipulatoren wirken auch auf alle anderen Ausgaben! ggf. wieder zurücksetzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1968497</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1968497</guid><dc:creator><![CDATA[Werner_logoff]]></dc:creator><pubDate>Thu, 21 Oct 2010 12:56:48 GMT</pubDate></item></channel></rss>