Need fastest way to convert 2's complement to decimal in C

Posted by kartik on Stack Overflow See other posts from Stack Overflow or by kartik
Published on 2010-04-22T07:48:00Z Indexed on 2010/04/22 8:13 UTC
Read the original article Hit count: 295

Filed under:

I have a certain 18 bits (which are in 2's complement) within 32 bits. I need to convert them to decimal. Please show me a code snippet in C.

Thanks !

© Stack Overflow or respective owner

Related posts about c