temp[0] = ((unsigned char*)(&f))[0];
temp[1] = ((unsigned char*)(&f))[1];