本文介绍了比较十六进制值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用API来检查错误.当出现错误时,我得到了字节数组.如何将其与预定义的十六进制库值进行比较?错误值包含4个字节(LSB-MSB).
十六进制值06090011被定义为超出范围.
api将返回
错误(0)= 17
错误(1)= 0
错误(2)= 9
错误(3)= 6
----------------
--------------
-------------------
我当前的代码给了我十六进制值69011而不是06090011.有人可以帮我吗?
I am using an API to check for errors. When there is an error I get array of bytes. How do I compare it to the predefine hex library value? The value of the error contain 4 bytes (LSB-MSB).
Hex value 06090011 is defined as out of range.
The api will return
error(0)=17
error(1)=0
error(2)=9
error(3)=6
----------------
--------------
-------------------
My current code gives me hex value 69011 instead of 06090011. Can someone help me?
推荐答案
&H06090011 = 101253137 decimal
这篇关于比较十六进制值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!