int main() { unsigned long foo; float f; double d; foo = 0xffffffff; f = *((float *)&foo); d = (double) f; }