<?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[Float als Char Array]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine Zahl als Float vorliegen, und ich muss diese binär übertragen. Gibt es ne möglichkeit an die Bytes im Speicher ranzukommen(ich glaub bei float sinds 4 Byte), oder gleich ein char Array daraus zu erstellen.</p>
<p>Vielleicht gibts auch die Möglichkeit das ganze binär in einen String zu schreiben über beispielsweise: sprintf?</p>
<p>Wäre toll wenn mir jemand helfen könnte</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/118498/float-als-char-array</link><generator>RSS for Node</generator><lastBuildDate>Fri, 21 Aug 2026 10:24:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/118498.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 21 Aug 2005 09:23:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Float als Char Array on Sun, 21 Aug 2005 09:23:11 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine Zahl als Float vorliegen, und ich muss diese binär übertragen. Gibt es ne möglichkeit an die Bytes im Speicher ranzukommen(ich glaub bei float sinds 4 Byte), oder gleich ein char Array daraus zu erstellen.</p>
<p>Vielleicht gibts auch die Möglichkeit das ganze binär in einen String zu schreiben über beispielsweise: sprintf?</p>
<p>Wäre toll wenn mir jemand helfen könnte</p>
]]></description><link>https://www.c-plusplus.net/forum/post/855226</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/855226</guid><dc:creator><![CDATA[Lx386]]></dc:creator><pubDate>Sun, 21 Aug 2005 09:23:11 GMT</pubDate></item><item><title><![CDATA[Reply to Float als Char Array on Sun, 21 Aug 2005 09:40:06 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">float f=4;
char* als_bin_str=reinterpret_cast&lt;char*&gt;(&amp;f);
unsigned size=sizeof(float);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/855241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/855241</guid><dc:creator><![CDATA[ness]]></dc:creator><pubDate>Sun, 21 Aug 2005 09:40:06 GMT</pubDate></item><item><title><![CDATA[Reply to Float als Char Array on Sun, 21 Aug 2005 09:52:04 GMT]]></title><description><![CDATA[<p>Super Danke für die schnelle Antwort!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/855250</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/855250</guid><dc:creator><![CDATA[Lx386]]></dc:creator><pubDate>Sun, 21 Aug 2005 09:52:04 GMT</pubDate></item></channel></rss>