float以16進制打印輸出

void print_float_hex(float f)
{

  union{float f; int i;}test;

  test.f=f;

  printf("%12.7e||||||||||%#010x/n",test.f,test.i);

}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章