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. :)

Christopher D. Lewis wrote:

Someone posted a question as to the size of number which a scalar would tolerate. When I wanted to know what size boundaries I faced in certain variable types in C, I wrote a little program that added 1 to a variable until n+1 was less than n, at which point I concluded the variable had been rolled over to its start again. Perl seems to tolerate quite a bit of this, as the app has been churning away, printing every so many number just to let me know where it's at, and it recently went past two hundred billion (I cheated and am incrementing by 1000 instead of 1, because I got impatient incrementing by one). $scalars in perl handle big numbers ... and maybe Perl notices when a boundary is being crossed and reconstitutes the number?

Take care,
Chris


--
Benjamin J. Siders
Software Engineer



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

Reply via email to