Home > Back-end >  Help: character conversion problem
Help: character conversion problem

Time:09-18

Unsigned char buf []={0 x46, 0 x46, 0 x41, 0 x36, 0 x30, 0 x33, 0 x42, 0 x33};
Need to translate into 0 xffa6 0 x03b3,
Finally be decimal number float number=- 90.0.014,

CodePudding user response:

ASCII convert HEX, coercion can "F"=(char) buf [0] and so on

CodePudding user response:

Casts should be double, not float
  • Related