#include <iostream>
using namespace std;

int main()
{
  // IEEE floating point
  // internal format 31:sign,30-23:expornent,22-0:1.xxx (xxx in bit pattern)
  // "Jyouhou Syakai to Computer" page87-89
  // to avoid error, code as follows is needed.
  int *n;
  void *temp;
  float f;
  
  f=0.734375;
  temp=&f;
  n=(int*)temp;
  cout.unsetf(ios::dec); //stop to express integer in decimal 
  cout.setf(ios::hex);   // integer in hexa-decimal
  cout << "0.734375 in hex =" << *n;
  return 0;
}
