float a = 64.4f; char b = 0; b = a; std::cout<<b<<std::endl;
char *pc = new char[4]; memcpy(pc,&a,4); std::cout.write(pc,4); delete[] pc;