how to convert a hex number to float in Python

前端 未结 0 594
南方客
南方客 2020-12-06 21:00

how to convert a hex number to float i use this in C

HexTofloat float (uint32_t x){
   return (* (float *) & x);
}
i = HexTofloat (1130839281);
print (i);         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题