can someone help me?
I am still stuck. I have found the sign bit, exponent bit, and mantissa. how can i tell if its normalized or denormalized? What about infinity? zero? or NAN
please i want to learn but i dont know what to do. Can someone give me clear instructions? or some working code?
This is what i have so far..
int main(int argc, char *argv)
int a = 0x12345678;
unsigned char *c = (unsigned char*)(&a);
if (*c == 0x78)
bool negative = !!(HexNumber & 0x80000000);
int exponent = (HexNumber & 0x7f800000) >> 23;
int mantissa = (HexNumber & 0x007FFFFF);
printf("\nsignBit %d,", negative);
printf("expbits %d,", exponent);
printf("fractbits %#x,", mantissa);
Here is my output which is what i want..
signBit 1,expbits 128,fractbits 0,