The count to one million thread.

Status
Not open for further replies.

benbradley

It's a doggy dog world
Super Member
Registered
Joined
Dec 5, 2006
Messages
20,322
Reaction score
3,513
Location
Transcending Canines
Okay, now we're up to 111111101101100 but I wrote the following for about four counts ago...

111 1111 0110 1000
I'm using the calculator that comes with Windows XP in scientific view, I enter a decimal number and click binary to get that, so it MUST be right... let's see, least significant bit first, I get:

0*1
0*2
0*4
1*8 8

0*16
1*32 32
1*64 64
0*128

1*256 256
1*512 512
1*1024 1024
1*2048 2048

1*4096 4096
1*8192 8192
1*16384 16384

Adding up the numbers on the right = 32616. Either that's right, or the Windows XP Calculator doesn't add correctly either.
 
Last edited:

benbradley

It's a doggy dog world
Super Member
Registered
Joined
Dec 5, 2006
Messages
20,322
Reaction score
3,513
Location
Transcending Canines
32262, but I wrote the below for the previous number...

Lets' try 32621 - the WinXP calc says that's:
111 1111 0110 1101
If we take 1's complement:
000 0000 1001 0010
that's:
0*1
1*2 2
0*4
0*8

1*16 16
0*32
0*64
1*128 128

that's 128+16+2=146. Now subtract that from the magic number 2^32 or 32768 and we get 32768-146=32622

Okay, maybe I shudda taken 2's complement.
 
Status
Not open for further replies.