Count to 1000 in binary

• (4 Pages)
• 1
• 2
• 3
• Last »

46 Replies - 5742 Views - Last Post: 13 June 2011 - 08:17 AM

#1 CodderMan

Reputation: 10
• Posts: 48
• Joined: 18-November 10

Count to 1000 in binary

Posted 27 November 2010 - 11:42 AM

The point is simple count to 1000 in 8bit binary.
So I will start first:
00000001

Replies To: Count to 1000 in binary

#2 CodderMan

Reputation: 10
• Posts: 48
• Joined: 18-November 10

Re: Count to 1000 in binary

Posted 27 November 2010 - 12:53 PM

Actually I just realised I made a mistake since 8-bit binary goes only to 255.
We will do this in 16-bit binary.

0000000000000001

#3 NeoTifa

• Whorediot

Reputation: 3074
• Posts: 16,466
• Joined: 24-September 08

Re: Count to 1000 in binary

Posted 27 November 2010 - 01:06 PM

FAIL! 0000000000000010

#4 bingy

Reputation: 115
• Posts: 749
• Joined: 15-December 06

Re: Count to 1000 in binary

Posted 28 November 2010 - 07:38 AM

0000000000000011

#5 amitchhajer

Reputation: 7
• Posts: 78
• Joined: 30-January 10

Re: Count to 1000 in binary

Posted 28 November 2010 - 10:35 PM

0000000000000100

#6 Nitewalkr

Reputation: 2
• Posts: 178
• Joined: 17-November 10

Re: Count to 1000 in binary

Posted 29 November 2010 - 01:06 AM

0000 0101 in 8 distinct bits
and
0000 0000 0101 in 16. =\

#7 lordofduct

• I'm a cheeseburger

Reputation: 2539
• Posts: 4,641
• Joined: 24-September 10

Re: Count to 1000 in binary

Posted 02 December 2010 - 09:20 AM

what does it matter the bits... it's not like you NEED to pad with zeros. The only reason people usually do that is because they're representing the state of the register the value is being stored in.

It's not like I say 0000027 when I say that I'm 27 years of age.

Anyways

110

#8 NeoTifa

• Whorediot

Reputation: 3074
• Posts: 16,466
• Joined: 24-September 08

Re: Count to 1000 in binary

Posted 02 December 2010 - 09:24 AM

Good point. 111

#9 lordofduct

• I'm a cheeseburger

Reputation: 2539
• Posts: 4,641
• Joined: 24-September 10

Re: Count to 1000 in binary

Posted 02 December 2010 - 09:27 AM

I know!

1000

shit we're already at 1000... that was short.

#10 Nitewalkr

Reputation: 2
• Posts: 178
• Joined: 17-November 10

Re: Count to 1000 in binary

Posted 02 December 2010 - 01:24 PM

1001

#11 calvinthedestroyer

• D.I.C Lover

Reputation: 168
• Posts: 1,917
• Joined: 13-October 07

Re: Count to 1000 in binary

Posted 05 December 2010 - 10:44 PM

CodderMan, on 27 November 2010 - 11:53 AM, said:

Actually I just realised I made a mistake since 8-bit binary goes only to 255.
We will do this in 16-bit binary.

0000000000000001

haha!

0000000000001010

And yes the leading bits DO matter. you must hold the bus low to prevent any noise from other devices that might magically make a one.

#12 Nitewalkr

Reputation: 2
• Posts: 178
• Joined: 17-November 10

Re: Count to 1000 in binary

Posted 06 December 2010 - 12:10 AM

0000 0000 0000 1011

by the way I haven't done the Computer architecture much so I could be wrong but isnt it suppose to be 3 sets of 4 bits when considering 16 bits? =S

#13 bennitto

Reputation: 6
• Posts: 64
• Joined: 28-November 09

Re: Count to 1000 in binary

Posted 06 December 2010 - 01:16 PM

0000 0000 0000 1100

#14 lordofduct

• I'm a cheeseburger

Reputation: 2539
• Posts: 4,641
• Joined: 24-September 10

Re: Count to 1000 in binary

Posted 06 December 2010 - 03:00 PM

1101

If it's 16 bits, you have 16 binary digits of precision, groups of 4 would be 16/4, so that's 4 groups of 4.

4*4=16

And no, the 0 padding is not necessary when writing a binary number. You may desire to depending the application of using binary numbers. But in the application of counting in a forum... where is the need? Maybe a preference of readability by some, but that's only preference, not need.

Keep in mind, binary is just another number system. Like hex, octal, decimal, quad, etc. The only time we pad any of these is because we desire to display them in their containers in that manner (a register, a text box, a grid, a scantron, etc).

In the case of say a memory register, yes you would write all the 0's because you're using some collection of bits to represent a number, and you must set ALL the bits to the proper representation. But that's a need of the hardware, not a need of binary numbers themselves.

This post has been edited by lordofduct: 06 December 2010 - 03:09 PM

#15 nathanpc

• SCIENCE!

Reputation: 112
• Posts: 1,171
• Joined: 31-July 09

Re: Count to 1000 in binary

Posted 08 December 2010 - 02:05 PM

0000 0000 0000 1111

• (4 Pages)
• 1
• 2
• 3
• Last »

 .related ul { list-style-type: circle; font-size: 12px; font-weight: bold; } .related li { margin-bottom: 5px; background-position: left 7px !important; margin-left: -35px; } .related h2 { font-size: 18px; font-weight: bold; } .related a { color: blue; }