Hi all,
I have a 32-bit processor, and I believe floats are generally given 23 bits for the mantissa, but I want to know for sure. However I'm running Red Hat Linux 9.0, which has no float.h that I can find, even though /usr/include/c++/3.2.2/cfloat seems to include it?? The cfloat header looks like this:
Code:
#ifndef _CPP_CFLOAT
#define _CPP_CFLOAT 1
#pragma GCC system_header
#include <float.h>
#endif
but a 'find' doesn't yield any float.h anywhere on my system.
My floats are 4 bytes in size, but how can I find how those 32 bits are actually structured, other than writing a for loop that just spits out the biggest number it can, then seeing how many bits are required to represent that number?
Thanks.