<?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[Wissenschaftliche schreibweise für Zahlen]]></title><description><![CDATA[<p>Hi ich habe in meinem Code stehen:</p>
<pre><code>const int i = 1E3;
</code></pre>
<p>dann mault der compiler, dass ich double in int konvertiere, lösen kann ich das durch</p>
<pre><code>const int i = 1000;
</code></pre>
<p>Frage: Kann ich das auch wissenschaftlich notieren ohne Compilerwarnung?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/315831/wissenschaftliche-schreibweise-für-zahlen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Jul 2026 10:54:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/315831.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Apr 2013 12:02:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wissenschaftliche schreibweise für Zahlen on Sat, 13 Apr 2013 12:02:17 GMT]]></title><description><![CDATA[<p>Hi ich habe in meinem Code stehen:</p>
<pre><code>const int i = 1E3;
</code></pre>
<p>dann mault der compiler, dass ich double in int konvertiere, lösen kann ich das durch</p>
<pre><code>const int i = 1000;
</code></pre>
<p>Frage: Kann ich das auch wissenschaftlich notieren ohne Compilerwarnung?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2315190</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2315190</guid><dc:creator><![CDATA[Dudeldu]]></dc:creator><pubDate>Sat, 13 Apr 2013 12:02:17 GMT</pubDate></item><item><title><![CDATA[Reply to Wissenschaftliche schreibweise für Zahlen on Sat, 13 Apr 2013 12:04:21 GMT]]></title><description><![CDATA[<pre><code>const int i = static_cast&lt;int&gt;(1E3);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2315192</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2315192</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Sat, 13 Apr 2013 12:04:21 GMT</pubDate></item><item><title><![CDATA[Reply to Wissenschaftliche schreibweise für Zahlen on Sat, 13 Apr 2013 13:58:35 GMT]]></title><description><![CDATA[<p>Oder besser</p>
<pre><code>const int i = int(1E3);
</code></pre>
<p>damit der static_cast nicht seine beabsichtigte abschreckende Wirkung verliert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2315217</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2315217</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sat, 13 Apr 2013 13:58:35 GMT</pubDate></item><item><title><![CDATA[Reply to Wissenschaftliche schreibweise für Zahlen on Sat, 13 Apr 2013 14:45:08 GMT]]></title><description><![CDATA[<p>Andere Möglichkeit wäre ggf. ein Compilerupdate.<br />
Es gibt keinen guten Grund, bei 1e3 zu warnen. clang macht es nicht und g++ seit 4.2 auch nicht mehr.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2315228</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2315228</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Sat, 13 Apr 2013 14:45:08 GMT</pubDate></item></channel></rss>