<?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[long double in string konvertieren]]></title><description><![CDATA[<p>Hallo zusammen!</p>
<p>benötige eine Funktion mit der ich gleitkommazahlen in strings umwandeln kann.<br />
Hab da bis jetzt ostringstream gearbeitet.<br />
Leider bekomm ich mit der bloß eine genauigkeit von 6 stellen hin. Also float werte eben. hätte aber gern auch double und long double werte.<br />
Kann mir jemand sagen wie ich das hinbekomme?<br />
Danke schonmal im voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162975/long-double-in-string-konvertieren</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 18:18:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162975.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Oct 2006 17:38:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to long double in string konvertieren on Tue, 24 Oct 2006 17:38:47 GMT]]></title><description><![CDATA[<p>Hallo zusammen!</p>
<p>benötige eine Funktion mit der ich gleitkommazahlen in strings umwandeln kann.<br />
Hab da bis jetzt ostringstream gearbeitet.<br />
Leider bekomm ich mit der bloß eine genauigkeit von 6 stellen hin. Also float werte eben. hätte aber gern auch double und long double werte.<br />
Kann mir jemand sagen wie ich das hinbekomme?<br />
Danke schonmal im voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1160589</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1160589</guid><dc:creator><![CDATA[TomTom85]]></dc:creator><pubDate>Tue, 24 Oct 2006 17:38:47 GMT</pubDate></item><item><title><![CDATA[Reply to long double in string konvertieren on Tue, 24 Oct 2006 17:47:47 GMT]]></title><description><![CDATA[<p>Mit precision kannst du die Genauigkeit (betrifft Vor- und Nachkommastellen) festlegen:</p>
<pre><code class="language-cpp">int main() {
	ostringstream ostr;
	double ld = 6.1234543587;
	ostr.precision(15);
	ostr &lt;&lt; ld;
	cout &lt;&lt; ostr.str() &lt;&lt; endl;
}
</code></pre>
<p>Das gibt bei mir alle Nachkommastellen aus.</p>
<p>Greetz</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1160592</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1160592</guid><dc:creator><![CDATA[Vellas]]></dc:creator><pubDate>Tue, 24 Oct 2006 17:47:47 GMT</pubDate></item><item><title><![CDATA[Reply to long double in string konvertieren on Tue, 24 Oct 2006 17:46:38 GMT]]></title><description><![CDATA[<p>Hallo,<br />
du kannst die Genauigkeit mit dem Manipulator setprecision verändern. Auch der Manipulator fixed könnte für dich interessant sein. Für setprecision musst du zusätzlich den Header &lt;iomanip&gt; inkludieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1160594</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1160594</guid><dc:creator><![CDATA[HumeSikkins]]></dc:creator><pubDate>Tue, 24 Oct 2006 17:46:38 GMT</pubDate></item><item><title><![CDATA[Reply to long double in string konvertieren on Tue, 24 Oct 2006 17:57:45 GMT]]></title><description><![CDATA[<p>Achja danke...<br />
Bin wohl schon zu lange bei C# <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1160603</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1160603</guid><dc:creator><![CDATA[TomTom85]]></dc:creator><pubDate>Tue, 24 Oct 2006 17:57:45 GMT</pubDate></item></channel></rss>