Home > other >  Stm32 hexadecimal array is converted to a decimal
Stm32 hexadecimal array is converted to a decimal

Time:10-04

Recently started a project that needs to be hardware module return hexadecimal data into a decimal number, how to translate?
Specific case: return data of 0 x86 (data high) 0 x00 (data) is low, I use the array num to receive [2], how to convert hexadecimal to decimal number? Bosses give directions,

CodePudding user response:

The int data;
Data=https://bbs.csdn.net/topics/(num [1] <16) | num [0]
  • Related