<?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[int als &amp;quot;boolzahl&amp;quot;]]></title><description><![CDATA[<p>Hallo Gibt es eine einfache und vor allem schnelle Methode eine int-Zahl in ihrer Binärdarstellung umzuwandeln.</p>
<p>Also:</p>
<p>Es sein i eine integerzahl mit dem Wert 3. Dann hätte ich gerne so etwas: 0011</p>
<p>Grüße</p>
<p>DipplInsch</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/187152/int-als-quot-boolzahl-quot</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 14:23:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/187152.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Jul 2007 13:01:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to int als &amp;quot;boolzahl&amp;quot; on Mon, 16 Jul 2007 13:01:28 GMT]]></title><description><![CDATA[<p>Hallo Gibt es eine einfache und vor allem schnelle Methode eine int-Zahl in ihrer Binärdarstellung umzuwandeln.</p>
<p>Also:</p>
<p>Es sein i eine integerzahl mit dem Wert 3. Dann hätte ich gerne so etwas: 0011</p>
<p>Grüße</p>
<p>DipplInsch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326538</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326538</guid><dc:creator><![CDATA[DipplInsch]]></dc:creator><pubDate>Mon, 16 Jul 2007 13:01:28 GMT</pubDate></item><item><title><![CDATA[Reply to int als &amp;quot;boolzahl&amp;quot; on Mon, 16 Jul 2007 13:03:12 GMT]]></title><description><![CDATA[<p>das nennt sich dualzahl</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326540</guid><dc:creator><![CDATA[kenner der dummköffe]]></dc:creator><pubDate>Mon, 16 Jul 2007 13:03:12 GMT</pubDate></item><item><title><![CDATA[Reply to int als &amp;quot;boolzahl&amp;quot; on Mon, 16 Jul 2007 13:04:26 GMT]]></title><description><![CDATA[<p>Schnell zu schreiben wäre der Weg über ein bitset&lt;&gt;. Wenn du es etwas direkter haben willst, kannst du die Zahl auch mit % und / auseinandernehmen.</p>
<p>PS: Die Bezeichnung 'boolzahl' ist mir übrigens neu <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326542</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326542</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 16 Jul 2007 13:04:26 GMT</pubDate></item><item><title><![CDATA[Reply to int als &amp;quot;boolzahl&amp;quot; on Mon, 16 Jul 2007 13:05:14 GMT]]></title><description><![CDATA[<p>Einfach und schnell! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_tongue"
      title=":P"
      alt="😛"
    /></p>
<pre><code class="language-cpp">std::cout &lt;&lt; std::bitset&lt; 32 &gt;( 3 );
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1326543</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326543</guid><dc:creator><![CDATA[David_pb]]></dc:creator><pubDate>Mon, 16 Jul 2007 13:05:14 GMT</pubDate></item><item><title><![CDATA[Reply to int als &amp;quot;boolzahl&amp;quot; on Mon, 16 Jul 2007 13:06:17 GMT]]></title><description><![CDATA[<p>Aus Wikipedia und durch ein E-Technik Studium bestätigt</p>
<blockquote>
<p>Die Zahlen, die durch das Dualsystem dargestellt werden, heißen Dualzahlen oder Binärzahlen. Letztere ist die allgemeinere Bezeichnung, da diese auch einfach für binärcodierte Zahlen stehen kann. Der Begriff Binärzahl spezifiziert die Darstellungsweise einer Zahl also nicht näher, er sagt nur aus, dass zwei verschiedene Ziffern verwendet werden.</p>
</blockquote>
<p><a href="http://de.wikipedia.org/wiki/Dualzahl" rel="nofollow">http://de.wikipedia.org/wiki/Dualzahl</a></p>
<p>Grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326544</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326544</guid><dc:creator><![CDATA[DipplInsch]]></dc:creator><pubDate>Mon, 16 Jul 2007 13:06:17 GMT</pubDate></item><item><title><![CDATA[Reply to int als &amp;quot;boolzahl&amp;quot; on Mon, 16 Jul 2007 13:09:11 GMT]]></title><description><![CDATA[<p>Boolzahl habe ich deshalb gewählt, weil die Zahl eine Gray codierte Zahl in einem Interger-Gewand ist. Ich fand Duazahl irgendwie unpassend, da die Intergerdarstellung einer Gray codierte Zahl eigentlich Unfug ist.</p>
<p>Grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326546</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326546</guid><dc:creator><![CDATA[DipplInsch]]></dc:creator><pubDate>Mon, 16 Jul 2007 13:09:11 GMT</pubDate></item><item><title><![CDATA[Reply to int als &amp;quot;boolzahl&amp;quot; on Mon, 16 Jul 2007 13:11:36 GMT]]></title><description><![CDATA[<p>DipplInsch schrieb:</p>
<blockquote>
<p>Aus Wikipedia und durch ein E-Technik Studium bestätigt</p>
</blockquote>
<p>Ja, mit den Bezeichnungen &quot;Binärzahl&quot; oder &quot;Dualzahl&quot; kann ich noch mitgehen, aber &quot;Boolzahl&quot; ist Nonsens.</p>
<p>Edit: Wenn es eine Grey-codierte Binärzahl ist, dann nenn sie doch auch so <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> (bool ist ein C++ Datentyp für Wahrheitswerte (true/false))</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326547</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326547</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 16 Jul 2007 13:11:36 GMT</pubDate></item><item><title><![CDATA[Reply to int als &amp;quot;boolzahl&amp;quot; on Mon, 16 Jul 2007 13:10:47 GMT]]></title><description><![CDATA[<p>David_pb schrieb:</p>
<blockquote>
<p>Einfach und schnell! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_tongue"
      title=":P"
      alt="😛"
    /></p>
<pre><code class="language-cpp">std::cout &lt;&lt; std::bitset&lt; 32 &gt;( 3 );
</code></pre>
</blockquote>
<p>Das ist doch mal ein Beispiel, danke und Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1326548</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1326548</guid><dc:creator><![CDATA[DipplInsch]]></dc:creator><pubDate>Mon, 16 Jul 2007 13:10:47 GMT</pubDate></item></channel></rss>