## Binary

 Author Message Miles Neale SSCertifiable Group: General Forum Members Points: 6669 Visits: 1698 Thanks Steve, Kind of like back to the very basics! Very Cool!M. Not all gray hairs are Dinosaurs! Marcia J SSCrazy Group: General Forum Members Points: 2772 Visits: 2066 IgorMi (1/1/2014)Cool, in11111011110it was essential to spot that the first two bits (1) and the last one (0) are constructing the right answer.Regards, IgorMiThat's pretty much how I did it. Since the last bit had to be a zero since it's an even number, that narrowed it down to 2 answers. Since they differed on the second bit, I only calculated that far.Love multiple choice. Tom Thomson SSC Guru Group: General Forum Members Points: 50946 Visits: 13159 Nice question.But although the explanation is correct adding up the 1 bits is doing it the hard way. 2014 is 2047 - 33, so the bits with are 0 must be the bit that represents 1 and teh bit that represents 32 - that's much easier. Or doing it by elimination as suggested by Igor and Marcia - 2014 is oddeven so the last bit is zero; it's bigger that 1536, so the 2nd bit (from the significant end) is not zero. That eliminates 3 of the 4 options, and is a lot easier than adding up the powers of two indicated by 10 bits to see if they come to 2014 even if you start by testing the correct value: if you did it that way and came to the correct value last you would end up adding up 3 sets of 10 numbers - no need to ad up teh 4th set once you know the others are all wrong - really a lot of work compared with the not-so-hard ways of doing it. Tom Ken Wymore SSCrazy Eights Group: General Forum Members Points: 9640 Visits: 2470 Thanks for the fun question Steve. Haven't converted anything from binary since school. Happy 2014 all. sqlnaive SSChampion Group: General Forum Members Points: 10973 Visits: 2774 twin.devil (1/1/2014)Bill (DBAOnTheGo) (12/31/2013)There are only 10 types of people in this world.+10 :-)+10 :-)Happy 2014... Koen Verbeeck SSC Guru Group: General Forum Members Points: 146626 Visits: 13350 Great question.Happy 11111011110 to you all! How to post forum questions.Need an answer? No, you need a question.What’s the deal with Excel & SSIS?My blog at SQLKover.MCSE Business Intelligence - Microsoft Data Platform MVP jfgoude SSCommitted Group: General Forum Members Points: 1852 Visits: 299 easy one this year on my blog, my happy new year wishes were in binary format David Conn SSCarpal Tunnel Group: General Forum Members Points: 4108 Visits: 1247 Excellent Question. Reducing things to Binary should remind Computer people of our origins. Arno Kwetters SSCrazy Group: General Forum Members Points: 2327 Visits: 388 Indeed. Back to basic.There are 10 kind of people.Those who understand binary counting and those who don't.Before I went to school I thought 1 + 1 = 3On elementary school I find out it was less1 + 1 = 2Computer science reduced this again1 + 1 = 1