Display ieee 32bit representation of float ... strange behaviour on pointer output
<p>I have a bit of trouble with the following code:</p>

<pre><code>void main()
{

float value = 100;

char * vP;

vP = (char *) &amp;value;

printf ("%02x ", *(vP+3));
printf ("%02x ", *(vP+2));
printf ("%02x ", *(vP+1));
printf ("%02x ", *(vP+0));

}
</code></pre>

<p>The output I get is:</p>

<p>42 ffffffc8 00 00</p>

<p>instead of:</p>

<p>42 c8 00 00 (as required for an IEEE 32bit conversion)</p>

<p>Can anyone help and explain what goes wrong ? If I use
a float value of e.g. 12.2 everything is fine !</p>

<p>Thanks and best regards</p>

<p>Olaf.</p>
