Sunday, March 04, 2007

Contest results (from November): 0xDECAFC0FFEEBAD

Back in November, I had a contest: what's special about the number 62710628778699693?

Both Joe and Craig answered correctly: Converted to hex, it's "0xDECAFC0FFEEBAD". The Google calculator, my default choice, only lets you convert numbers as high as 0x40000000000. (Interestingly enough, the limit really is 0x40000000000, not 0x3ffffffffff). Many downlodable or javascript base converters choke on anything bigger than 32 bits. I was curious what tools people might try.

One tool I did not test was the Windows XP calculator, which does the conversion quite easily. That's what Joe used.

Craig wrote a custom C# application to do the conversion.

I guess the moral of the story is...Microsoft tools save the day???

Congrats to both! Craig, I still have your prize--remind me next time we go for lunch.

Labels: , ,

2 Comments:

At 8:28 AM, March 06, 2007, Blogger Kendra K. said...

yesterday joe had a caffeine headache and we got coffee with the spoils of the contest.

 
At 7:15 PM, March 06, 2007, Blogger Unknown said...

it was awesome.

you can also do it easily enough with the standard unix tool "bc". start it up, enter "ibase=10", then "obase=16", then enter the number.

 

Post a Comment

<< Home