开发者

Question on converting decimal to binary to hex [closed]

开发者 https://www.devze.com 2022-12-13 03:10 出处:网络
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years ago.

I'm a little c开发者_开发知识库onfused here:

I'm trying to reverse engineer the ASCII value 65. In the book I am reading it says:

Decimal: 65
Hex:  41
Octal: 101

But 65 in its binary representation is:

0010 0001

And 0010 in hex is 2, while 0001 is 1, which indicates that the hex value "should" be: 21.

Where did I go wrong?


65 dec in bin is 0100 0001.


you have the binary wrong - it should be 0100 0001 - your bin to hex is fine

incidentally bin->oct->dec->hex is one of the things calc.exe is actually really useful for


65 in decimal is:

 0100 0001

You're off by a digit in the first nibble.

0

精彩评论

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

关注公众号