Ben Siders wrote:

> You'll be waiting a long time.  Perl quickly moves into scientific
> notation and can handle arbitrarily large values.  I wrote a similar
> program a while back and got bored with it when the count hit about
> 10^17. :)

if you don't want to wait but still want to try to push Perl to its limit:

[panda@dzhuo]# perl -e 'print 12x2*2,"\n"'
2424

[panda@dzhuo]# perl -e 'print 45x99*2,"\n"'
9.09090909090909e+197

really:

[panda@dzhuo]# perl -Mbigint -e 'print 45x99*2,"\n"'
909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090

increase the number and give it a few tries.

david

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to