开发者

Converting decimal number into 2's complement using 16 bits

开发者 https://www.devze.com 2023-03-08 01:37 出处:网络
The 开发者_JAVA技巧problem: What is the decimal number -234 in 2\'s complement using 16 bits? Do I just have to convert 234 to binary?Yes, converting it to binary is sufficient. The answer is 0xff

The 开发者_JAVA技巧problem:

What is the decimal number -234 in 2's complement using 16 bits?


Do I just have to convert 234 to binary?


Yes, converting it to binary is sufficient. The answer is 0xff16.

Also, you can try using WolframAlpha to verify your calculations.

0

精彩评论

暂无评论...
验证码 换一张
取 消