<?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[Probleme mit variable typ:double und ausgabe auf konsole]]></title><description><![CDATA[<p>Hallo @ all,</p>
<p>programmier erst seit paar tagen c++...hier meine Frage<br />
ich will nen double wert einfacvh auf einer konsole ausgeben, doch es werden mir immer nur sieben zeichen / 6 stellen angezeigt:<br />
Bsp.:<br />
#include &lt;iostream&gt;<br />
using namespace std;<br />
int main(void)<br />
{<br />
double wert = 12.123456789;<br />
cout &lt;&lt; wert &lt;&lt; endl;<br />
wert = 1212345.6789;<br />
cout &lt;&lt; wert &lt;&lt; endl;<br />
return 1;<br />
}</p>
<p>Ausgegeben wird dann:<br />
12.1235<br />
121235</p>
<p>würd aber gern mehr &quot;nachkommastellen&quot; ausgeben, mind. 2 mehr.<br />
ist ein ziemlich dämliches problem ich weiß :), aber ich weiß nicht was ich falsch mache, man kann doch mit double mind. 15 stellen speichern oder? brauch halt mehr stellen, da meine messwerte die ich aus einem ascii file auslesen will länger als 6 ziffern sind.</p>
<p>vielen dank;</p>
<p>schönen Tag noch...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/188003/probleme-mit-variable-typ-double-und-ausgabe-auf-konsole</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 23:21:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/188003.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Jul 2007 08:42:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit variable typ:double und ausgabe auf konsole on Thu, 26 Jul 2007 08:42:22 GMT]]></title><description><![CDATA[<p>Hallo @ all,</p>
<p>programmier erst seit paar tagen c++...hier meine Frage<br />
ich will nen double wert einfacvh auf einer konsole ausgeben, doch es werden mir immer nur sieben zeichen / 6 stellen angezeigt:<br />
Bsp.:<br />
#include &lt;iostream&gt;<br />
using namespace std;<br />
int main(void)<br />
{<br />
double wert = 12.123456789;<br />
cout &lt;&lt; wert &lt;&lt; endl;<br />
wert = 1212345.6789;<br />
cout &lt;&lt; wert &lt;&lt; endl;<br />
return 1;<br />
}</p>
<p>Ausgegeben wird dann:<br />
12.1235<br />
121235</p>
<p>würd aber gern mehr &quot;nachkommastellen&quot; ausgeben, mind. 2 mehr.<br />
ist ein ziemlich dämliches problem ich weiß :), aber ich weiß nicht was ich falsch mache, man kann doch mit double mind. 15 stellen speichern oder? brauch halt mehr stellen, da meine messwerte die ich aus einem ascii file auslesen will länger als 6 ziffern sind.</p>
<p>vielen dank;</p>
<p>schönen Tag noch...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1332786</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1332786</guid><dc:creator><![CDATA[Gast1]]></dc:creator><pubDate>Thu, 26 Jul 2007 08:42:22 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit variable typ:double und ausgabe auf konsole on Thu, 26 Jul 2007 08:46:09 GMT]]></title><description><![CDATA[<p>Du kannst mit setprecision() einstellen, wieviele Nackommastellen ausgegeben werden sollen:</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
#include &lt;iomanip&gt;

...
std::cout&lt;&lt;std::setprecision(10)&lt;&lt;wert;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1332789</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1332789</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 26 Jul 2007 08:46:09 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit variable typ:double und ausgabe auf konsole on Thu, 26 Jul 2007 09:03:42 GMT]]></title><description><![CDATA[<p>das ging aber sehr schnell <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Danke für deine Hilfe CStoll!</p>
<p>jetzt läuft alles wie gewünscht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1332804</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1332804</guid><dc:creator><![CDATA[Gast1]]></dc:creator><pubDate>Thu, 26 Jul 2007 09:03:42 GMT</pubDate></item></channel></rss>