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. bc is quite an amazing calculator. BAJ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist