| br1039 (75) | |||
The site http://easycalculation.com/hex-converter.php converts the value EB90 to 60304 wich is also found with:
To store EB90 in 2 Bytes, one could do:short x = startWord;Now debugger says that the value of x is -5232.What is the standart/correct way to put EB90 (0xEB90 or EB90H) into 2 Bytes?Thanks in advance. | |||
|
Last edited on
|
|||
| Chervil (1206) | ||||
Your debugger is correct.
If you use an unsigned short integer, the decimal value will be 60304, but that's merely a matter of how the value is interpreted, internally it is still stored as the same binary digits. | ||||
|
Last edited on
|
||||
| fafner (238) | |
| hmm, maybe unsigned short? | |
|
|
|