<?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[Exponent von int]]></title><description><![CDATA[<p>Hallo, ich habe:<br />
int iZahl=10;<br />
int iExp=5;<br />
int iErg;</p>
<p>und möchte:<br />
iErg=iZahl^iExp;</p>
<p>Leider funktioniert das nicht. Gibt es keine Exponentialfunktionen für int-Werte in c++?</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/265409/exponent-von-int</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 05:39:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/265409.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Apr 2010 14:43:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Exponent von int on Thu, 22 Apr 2010 14:43:05 GMT]]></title><description><![CDATA[<p>Hallo, ich habe:<br />
int iZahl=10;<br />
int iExp=5;<br />
int iErg;</p>
<p>und möchte:<br />
iErg=iZahl^iExp;</p>
<p>Leider funktioniert das nicht. Gibt es keine Exponentialfunktionen für int-Werte in c++?</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1886791</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1886791</guid><dc:creator><![CDATA[Zuyas]]></dc:creator><pubDate>Thu, 22 Apr 2010 14:43:05 GMT</pubDate></item><item><title><![CDATA[Reply to Exponent von int on Thu, 22 Apr 2010 14:48:33 GMT]]></title><description><![CDATA[<p>Nein. Musst du selbst schreiben.</p>
<p>Pass auf: Die Funktion mach nur selten Sinn, da man bei Integerpotenzen sehr schnell zu Überläufen kommt. Ich spekuliere mal, dass dies auch der Grund ist, warum die Funktion im Standard nicht vorgesehen ist.</p>
<p>edit: Und falls du es nicht weißt: Es gibt in cmath eine Funktion pow, die Potenzen ausrechnet. Ist aber auf double-Werte ausgelegt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1886795</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1886795</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 22 Apr 2010 14:48:33 GMT</pubDate></item><item><title><![CDATA[Reply to Exponent von int on Thu, 22 Apr 2010 14:50:50 GMT]]></title><description><![CDATA[<p>Alles klar, das macht Sinn. Danke</p>
<p>Ja, die Funktion pow kenne ich, hab mich nur gefragt warum es sowas nicht für int gibt. Mit deiner Antwort wäre die Frage beantwortet <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1886799</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1886799</guid><dc:creator><![CDATA[Zuyas]]></dc:creator><pubDate>Thu, 22 Apr 2010 14:50:50 GMT</pubDate></item></channel></rss>