|
-
Feb 17th, 2000, 11:51 PM
#1
Thread Starter
Lively Member
Does anyone know how to add binary numbers and if you have any code that would be awesome. for example i need to add binarry numbers like so:
01000011.11011101.10100111.11000000
11111111.10000000.00000000.00000000
but i know a 1 and 1 cannot be 2 so is a 1 and 1 10 or 01, so as you can see im just making myself confused. Any help would be greatly apprecaited.
Regards,
Scott
-
Feb 18th, 2000, 02:42 AM
#2
Hyperactive Member
Binary addition
1
+1
_______
10
10
+11
_______
101
It's just like decimal really except the numbers only go up to 1, so counting would be
decimal binary
0 0
1 1
2 10
3 11
4 100
5 101
6 110
7 111
8 1000
9 1001
10 1010
-
Feb 18th, 2000, 03:18 AM
#3
0 0
1 1
2 01
3 11
4 001
5 101
6 011
7 111
8 0001
9 1001
10 0101
I think Bigley got it backwards.
------------------
Boothman
There is a war out there, and it is about who controls the information, it's all about the information.
-
Feb 19th, 2000, 10:15 AM
#4
-
Feb 23rd, 2000, 03:13 AM
#5
Thread Starter
Lively Member
Binary Addition
Thanks alot for all the input guys. What i ended up doing was converting it to int and doing the addition that way.
Regards,
Scott
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|