<?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[cast von double to float]]></title><description><![CDATA[<p>hi!<br />
ich muss in meinem programm von double auf float casten und habe folgendes dazu gefunden:</p>
<blockquote>
<p>when you cast a double to a float, the system shrinks the number's precision, and this shrinking may change the number's value because of rounding. The rounding generally occurs on the sixth or seventh decimal digit. Also, when you cast down from double to float, you run the risk of causing a run-time overflow error caused by a double that is too big or too small to fit in a float.</p>
</blockquote>
<p>weiß jemand, ab welcher größenordnung es zu einem solchen runtime-overflow kommt?</p>
<p>lg,<br />
Iso</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/210257/cast-von-double-to-float</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 10:36:20 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/210257.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Apr 2008 06:53:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to cast von double to float on Wed, 09 Apr 2008 06:53:01 GMT]]></title><description><![CDATA[<p>hi!<br />
ich muss in meinem programm von double auf float casten und habe folgendes dazu gefunden:</p>
<blockquote>
<p>when you cast a double to a float, the system shrinks the number's precision, and this shrinking may change the number's value because of rounding. The rounding generally occurs on the sixth or seventh decimal digit. Also, when you cast down from double to float, you run the risk of causing a run-time overflow error caused by a double that is too big or too small to fit in a float.</p>
</blockquote>
<p>weiß jemand, ab welcher größenordnung es zu einem solchen runtime-overflow kommt?</p>
<p>lg,<br />
Iso</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1488845</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1488845</guid><dc:creator><![CDATA[Isomorphismus]]></dc:creator><pubDate>Wed, 09 Apr 2008 06:53:01 GMT</pubDate></item><item><title><![CDATA[Reply to cast von double to float on Wed, 09 Apr 2008 06:59:12 GMT]]></title><description><![CDATA[<p>float reicht von 1,2*10^-38 bis 3,4*10^38<br />
Wenn dein double außerhalb dieses bereiches ist hast du deinen Overflow. Das kannst du aber alles auch rausbekommen, indem du bei Google &quot;float Wertebereich&quot; eingibst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1488846</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1488846</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 09 Apr 2008 06:59:12 GMT</pubDate></item><item><title><![CDATA[Reply to cast von double to float on Wed, 09 Apr 2008 08:04:38 GMT]]></title><description><![CDATA[<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1488886</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1488886</guid><dc:creator><![CDATA[Isomorphismus]]></dc:creator><pubDate>Wed, 09 Apr 2008 08:04:38 GMT</pubDate></item></channel></rss>