Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Off topic: lightbulb joke...

by didier (Vicar)
on Aug 11, 2003 at 08:05 UTC ( #282784=note: print w/replies, xml ) Need Help??

in reply to Off topic: lightbulb joke...

Plagiarizing someone(?) the answer is 10:

One to change the lightbulb
and a programmer explaining binary numbers.

Replies are listed 'Best First'.
Re: Re: Off topic: lightbulb joke...
by waswas-fng (Curate) on Aug 11, 2003 at 19:03 UTC
    I think you mean 01 not 10. 01 is bin for 2.


      No, 10 is binary for 2.

      Think about this for a second... If 01 was binary for 2, then 00 would be binary for 1 and then what would zero be?

        0000 = 0
        1000 = 1
        0100 = 2
        1100 = 3
        0010 = 4

        Now lets not get into a endian war, I knew someone would bite. =)


        edited: oops mistyped the bits for 4.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://282784]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2018-07-22 13:12 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (454 votes). Check out past polls.