On Thu, Apr 20, 2006 at 12:08:06PM -0600, Robert Rolf wrote: > > > Byron A Jeff wrote: > > > On Thu, Apr 20, 2006 at 09:23:36AM -0400, Peter Todd wrote: > > > >>On Thu, Apr 20, 2006 at 02:54:52PM +0200, YAP wrote: > >> > >>>What is 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF (128 bits) in decimal? How go a > >>>head an calculate big numbers like this. > >> > >>If you have Linux, the bc calculator is great for this sort of thing: > >> > >>pete@gw:~$ bc > >>bc 1.06 > >>Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. > >>This is free software with ABSOLUTELY NO WARRANTY. > >>For details type `warranty'. > >>ibase=16 > >>FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF > >>340282366920938463463374607431768211455 > >>quit > >>pete@gw:~$ > >> > >>It can work with arbitrarily large numbers, computing crazy stuff like > >>2^(2^16) works. > > > > > > This is how I computed the answer earlier. I double checked it with > > 2^128. > > Uhh, shouldn't that be 2^128-1? 0xFFFF is 65535 not 65536 so by extension... Of course. But when I saw the same long string of numbers ending in 56 instead of 55 I know that I had the correct value. BAJ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist