Count to 1000 in binary

Count to 1000 in binary

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

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

#1 CodderMan  Icon User is offline

  • New D.I.C Head

Reputation: 10
  • View blog
  • 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  Icon User is offline

  • New D.I.C Head

Reputation: 10
  • View blog
  • 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  Icon User is offline

  • Whorediot
  • member icon





Reputation: 2497
  • View blog
  • Posts: 15,460
  • Joined: 24-September 08

Re: Count to 1000 in binary

Posted 27 November 2010 - 01:06 PM

FAIL! 0000000000000010

#4 bingy  Icon User is online

  • D.I.C Addict
  • member icon

Reputation: 92
  • View blog
  • Posts: 691
  • Joined: 15-December 06

Re: Count to 1000 in binary

Posted 28 November 2010 - 07:38 AM

0000000000000011

#5 amitchhajer  Icon User is offline

  • D.I.C Head
  • member icon

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

Re: Count to 1000 in binary

Posted 28 November 2010 - 10:35 PM

0000000000000100

#6 Nitewalkr  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 147
  • 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  Icon User is offline

  • I'm a cheeseburger
  • member icon


Reputation: 2506
  • View blog
  • Posts: 4,615
  • 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  Icon User is offline

  • Whorediot
  • member icon





Reputation: 2497
  • View blog
  • Posts: 15,460
  • Joined: 24-September 08

Re: Count to 1000 in binary

Posted 02 December 2010 - 09:24 AM

Good point. 111

#9 lordofduct  Icon User is offline

  • I'm a cheeseburger
  • member icon


Reputation: 2506
  • View blog
  • Posts: 4,615
  • 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. :smartass:

#10 Nitewalkr  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 147
  • Joined: 17-November 10

Re: Count to 1000 in binary

Posted 02 December 2010 - 01:24 PM

1001

#11 calvinthedestroyer  Icon User is offline

  • D.I.C Lover

Reputation: 166
  • View blog
  • Posts: 1,904
  • Joined: 13-October 07

Re: Count to 1000 in binary

Posted 05 December 2010 - 10:44 PM

View PostCodderMan, 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  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 147
  • 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  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • 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  Icon User is offline

  • I'm a cheeseburger
  • member icon


Reputation: 2506
  • View blog
  • Posts: 4,615
  • 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  Icon User is offline

  • SCIENCE!
  • member icon

Reputation: 112
  • View blog
  • 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 »