[24hoursupport] Re: Binary, Octal, and Hex help needed! :)

  • From: "John Doe" <JohnDoe4u2@xxxxxxxxxxx>
  • To: <24hoursupport@xxxxxxxxxxxxx>
  • Date: Fri, 3 May 2002 22:08:55 -0500



----- Original Message -----
From: <Lpagsugu@xxxxxxx>
To: <24hoursupport@xxxxxxxxxxxxx>
Sent: Friday, May 03, 2002 8:47 PM
Subject: [24hoursupport] Binary, Octal, and Hex help needed! :)


> Hi, I'm really confused about two's complement and octal.
>
> 1.)  In two's complement, how can using the opposite and adding one change
a
> number into the negative?
>
> 2.)  If octal 7 is 111 in binary, what is 8 and 9?

Conversion is similar from decimal to binary.
The difference being the number of digits used.
8 in binary is 1000 while in octal it is 10.
9 in binary is 1001 while in octal it is 11.


>
> I have some sample problems and I'll show you my answers for some of them.
> Please let me know if I'm on the right track or not.  Thanks!
>
> a.)
> Decimal: 37
> Binary: 100101>>>>>>correct. 32+4+1=37
> Octal: 45>>>>> 8+8+8+8+5 correct
> Hex: 25>>>>>correct 15+15+5=37
>
> b.)
> Decimal: -8
> Binary: 1000>>>>correct  8+0=8
> Octal: 1 >>>> should be 10. 8+2=10
> Hex: 8>>>>correct
>
> c.)
> Decimal: 10
> Binary: 1010>>>>correct   8+2=10
> Octal: 12  >>>> correct 8+2=10
> Hex: A >>>> correct
>
> d.)
> Decimal: -53
> Binary: 001011 (101011) (typo) >>>32+16++4+1=53
> Octal: 13 >>> if decimal 10 is octal 12 how can this be correct?
8+8+8+8+8+8+5=53. so it should be 65
> Hex: B >>>> not possible with only one digit. 16+16+11 so it should be FFB
>
> Thank you again for your help!
> Lene
>

Just remember what base you're using. Then do as I did to come up with your
answer.
add 8 or a6 as needed and that will give you the first number. The remainder
is then added.

- Users can unsubscribe from this list by sending email to 
24hoursupport-request@xxxxxxxxxxxxx with 'unsubscribe' in the 
Subject field OR by logging into the Web interface at
http://web.tampabay.rr.com/spider1/24hrsupport.htm. 

Other related posts: