<?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[Kann kein &amp;quot;Komma&amp;quot; eingeben]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe mir ein Programm mit double-Zahlen erstellt. Wie kann ich es machen, dass das Programm statt zB. &quot;12.20&quot; 12,20 akzeptiert.</p>
<p>Formatiert habe ich folgendermassen:</p>
<p>double dZahl1 = 0.0;<br />
CString m_strZah1 = T(&quot;&quot;);</p>
<p>dZahl1=atof(m_strZah1);<br />
m_strZah1.Format(&quot;%.2f&quot;, dZahl1);</p>
<p>Was muss ich noch machen?</p>
<p>Danke für Euere Hilfe</p>
<p>und viele Grüsse</p>
<p>Franz</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/191915/kann-kein-quot-komma-quot-eingeben</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 01:27:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/191915.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Sep 2007 10:59:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kann kein &amp;quot;Komma&amp;quot; eingeben on Sat, 08 Sep 2007 10:59:35 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe mir ein Programm mit double-Zahlen erstellt. Wie kann ich es machen, dass das Programm statt zB. &quot;12.20&quot; 12,20 akzeptiert.</p>
<p>Formatiert habe ich folgendermassen:</p>
<p>double dZahl1 = 0.0;<br />
CString m_strZah1 = T(&quot;&quot;);</p>
<p>dZahl1=atof(m_strZah1);<br />
m_strZah1.Format(&quot;%.2f&quot;, dZahl1);</p>
<p>Was muss ich noch machen?</p>
<p>Danke für Euere Hilfe</p>
<p>und viele Grüsse</p>
<p>Franz</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1361196</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1361196</guid><dc:creator><![CDATA[Franz Hembera]]></dc:creator><pubDate>Sat, 08 Sep 2007 10:59:35 GMT</pubDate></item><item><title><![CDATA[Reply to Kann kein &amp;quot;Komma&amp;quot; eingeben on Sat, 08 Sep 2007 12:47:47 GMT]]></title><description><![CDATA[<p>ersetz einfach vorher das , mit nem .<br />
m_strZah1.Replace(_T(','), _T('.'));</p>
<p>wenn du atof mit 12,20 machst, wird daraus 12.00 da er ab dem komma abbricht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1361251</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1361251</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Sat, 08 Sep 2007 12:47:47 GMT</pubDate></item><item><title><![CDATA[Reply to Kann kein &amp;quot;Komma&amp;quot; eingeben on Sat, 08 Sep 2007 14:35:36 GMT]]></title><description><![CDATA[<p>und wo muss ich das einfügen, bzw. was muss ich ersetzen? habe schon Verschiedenes probiert, klappte aber nicht.</p>
<p>Franz</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1361359</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1361359</guid><dc:creator><![CDATA[Franz Hembera]]></dc:creator><pubDate>Sat, 08 Sep 2007 14:35:36 GMT</pubDate></item><item><title><![CDATA[Reply to Kann kein &amp;quot;Komma&amp;quot; eingeben on Sat, 08 Sep 2007 14:53:29 GMT]]></title><description><![CDATA[<p>Du solltest die entsprechende locale verwenden.<br />
<a href="http://msdn2.microsoft.com/en-us/library/x99tb11d(VS.71).aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/x99tb11d(VS.71).aspx</a></p>
<pre><code class="language-cpp">setlocale( LC_ALL, &quot;&quot; );
</code></pre>
<p>Verwendet die Systemeinstellungen. Punkt in englischen OS als Dezimaltrennzeichen, Komma im deutschen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1361384</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1361384</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sat, 08 Sep 2007 14:53:29 GMT</pubDate></item><item><title><![CDATA[Reply to Kann kein &amp;quot;Komma&amp;quot; eingeben on Sat, 08 Sep 2007 15:53:55 GMT]]></title><description><![CDATA[<p>Habe &quot;setlocale( LC_ALL, &quot;&quot; );&quot; in die InitInstance eingefügt, erhalte aber Fehlermeldung, dass setlocale und LC_ALL nichtdeklarierte Bezeichner sind.</p>
<p>In einem anderen Programm hat das aber funktioniert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1361425</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1361425</guid><dc:creator><![CDATA[Franz Hembera]]></dc:creator><pubDate>Sat, 08 Sep 2007 15:53:55 GMT</pubDate></item><item><title><![CDATA[Reply to Kann kein &amp;quot;Komma&amp;quot; eingeben on Sat, 08 Sep 2007 16:27:56 GMT]]></title><description><![CDATA[<p>Keinen #include &lt;locale.h&gt; gemacht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1361448</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1361448</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sat, 08 Sep 2007 16:27:56 GMT</pubDate></item><item><title><![CDATA[Reply to Kann kein &amp;quot;Komma&amp;quot; eingeben on Sat, 08 Sep 2007 16:55:37 GMT]]></title><description><![CDATA[<p>Danke Martin, da hätte ich selbst draufkommen müssen <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="😡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1361470</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1361470</guid><dc:creator><![CDATA[Franz Hembera]]></dc:creator><pubDate>Sat, 08 Sep 2007 16:55:37 GMT</pubDate></item></channel></rss>