dav555
4
Light Poster
Recommended Answers
Jump to PostI don't know if there's a pre defined function but it shouldn't be too hard to code yourself.
Ignore the first two charactes and then convert from base sixteen to base 10.
You could use a for loop starting at the end of the string and multiply the number by …
Jump to Posthow can i convert a hex value of a byte (unsigned char) to a short value?
unsigned char hexByte = 0x02; short value= ???
thank you for your help!
As usually:
short value = hexByte;
What's a problem?
All 5 Replies
_Nestor
12
Light Poster
dav555
4
Light Poster
ArkM
1,090
Postaholic
Narue
5,707
Bad Cop
Team Colleague
dav555
4
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.