cpaplham has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to add one hundred 50-digit numbers together. my code is basically:
I have tried use bignum; but this didn't work. Whenever I print the value, I get an empty string. I only need about 15 digits of precision.my $big_number = 37107287533902102798797998220837590246510135740250 + 46376937677490009712648124896970078050417018260538 + ...;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Adding really big numbers
by frozenwithjoy (Priest) on Feb 23, 2013 at 00:15 UTC | |
by cpaplham (Initiate) on Feb 23, 2013 at 00:20 UTC | |
by frozenwithjoy (Priest) on Feb 23, 2013 at 00:23 UTC | |
by Anonymous Monk on Feb 23, 2013 at 00:38 UTC | |
by cpaplham (Initiate) on Feb 23, 2013 at 00:29 UTC | |
by frozenwithjoy (Priest) on Feb 23, 2013 at 00:31 UTC | |
| |
by frozenwithjoy (Priest) on Feb 23, 2013 at 00:30 UTC | |
Re: Adding really big numbers
by salva (Canon) on Feb 23, 2013 at 09:33 UTC | |
Re: Adding really big numbers
by Khen1950fx (Canon) on Feb 23, 2013 at 01:58 UTC | |
Re: Adding really big numbers
by ambrus (Abbot) on Mar 13, 2013 at 21:34 UTC |
Back to
Seekers of Perl Wisdom