How to convert hex two's complement to integer (e.g hex 810 to int -2032)
Show older comments
I would like to convert hex values which are defined in twos complement into int.For instance hex 810 convert in -2032. My first approach was to do it step by step. Convert to binary, Check msb for sign and then convert data accordingly. However I guess there might be a function available which can handle this issue easily??
Accepted Answer
More Answers (0)
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!