TranceAddict Forums (www.tranceaddict.com/forums)
- Chill Out Room
-- Nerds wanted - binary help
Nerds wanted - binary help
right so lads. Need help with binary addition etc.
i know how to work normal binary. One thing i dont know is ones and twos complement subtraction though.
say the question is 110101 - 011011 base 2.
I change 011011 to 100100 dont i? is that all i need to do, just work it out then or is there more?
Need to know how to convert from octal and hexadecimal to binary aswell.
e.g
123(base 8) to octal and hexi - how do i do it?
any help would be brilliant.
cheers.
its like
1 10 11 100 101 110 111 1000 1001 1010 1011 1100 1101 1111 10000 10001 10010 10011 10100 10101 10110 10111 11000 11001 11010 11011 11100 11101 11110 11111
http://www.phys.ualberta.ca/~gingri...es/node119.html
???
maybe google it?
Re: Nerds wanted - binary help
| quote: |
| Originally posted by Michael19 right so lads. Need help with binary addition etc. i know how to work normal binary. One thing i dont know is ones and twos complement subtraction though. say the question is 110101 - 011011 base 2. I change 011011 to 100100 dont i? is that all i need to do, just work it out then or is there more? Need to know how to convert from octal and hexadecimal to binary aswell. e.g 123(base 8) to octal and hexi - how do i do it? any help would be brilliant. cheers. |
Convert to base 10, subtract, then convert back to base 2.
Re: Re: Nerds wanted - binary help
| quote: |
| Originally posted by Resnick if u do octal - hex or other way, just convert to binary first so 123 = 001 010 011 in octal, and = 0001 0010 0011 in hex, |
use two's complement, switch all the 1s to 0s and 0s to 1 and add a 1. and then add the numbers.
1o1
| quote: |
| Originally posted by Goashem use two's complement, switch all the 1s to 0s and 0s to 1 and add a 1. and then add the numbers. |
Powered by: vBulletin
Copyright © 2000-2021, Jelsoft Enterprises Ltd.