fork download
  1. #include <cmath>
  2. #include <cstdio>
  3.  
  4. int main()
  5. {
  6. int xm = 0x3f18492a;
  7. float x = *(float*)&xm;
  8. x = (sqrt(x) + 1) / 2.0f;
  9. printf("%f %x\n", x, *(int*)&x);
  10. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
0.885638 3f62b92b