I am trying to print out the floating point values 0x40a00000 and 0xc0200000. But the values that I print out and the correct values according to the IEEE-754 Floating Point Con
int i1 = 0x40a00000; int i2 = 0xc0200000; float f1 = *(float*)&i1; float f2 = *(float*)&i2; printf("f1 = %.2f\n", f1); printf("f2 = %.2f\n", f2);