Hi
I'm trying to extract the exponent and mantissa from a float. It seems that the most forward way would be to read the bits of the number, according to IEEE 754 (http://steve.hollasch.net/cgindex/coding/ieeefloat.html). So I need to do bitwise operations to float variable. According to what I have found on the net, I need to cast the float to a char, whithout changing the actual bits in the variable. How do I do this?
float foo;
char fooChar = (char)foo;
Doesn't seem to do the right thing.
Thanks