On Mon, 1 Apr 2002, Nikhil Joshi wrote:
> > The MD5 hash is 128 bits long. This means that there are
> > 340,282,366,920,938,463,463,374,607,431,768,211,456 values. This means
>
> Just curious.
> How did you calculate this?
>
> according to xcalc
> 2^128 = 3.402823e+38
try python:
2L**128
or perl:
perl -e 'print sprintf("%39.0f", 2**128)'
Or you could use this to commify and print it:
my $n = reverse sprintf("%39.0f", 2**128);
$n =~ s/\G(\d{3})(?=\d)/$1,/g;
$n = reverse $n;
print $n;
ask me why and ask me what.
--
"Of all the tyrannies that affect mankind, tyranny in religion is the worst."
- Thomas Paine
_______________________________________________
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers