suvendra123 has asked for the wisdom of the Perl Monks concerning the following question:
How to store all 1 s in perl
my $value = 1 x 131/ 1; my $value1 = $value; print "$value";
output is coming as
1.11111111111111e+130
But I want variable $value1 as all 1's 131 times instead of e+130
What is the right step.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to store all 1 s in perl
by Fletch (Bishop) on Apr 08, 2021 at 01:30 UTC | |
| |
|
Re: How to store all 1 s in perl
by tybalt89 (Monsignor) on Apr 08, 2021 at 02:07 UTC | |
|
Re: How to store all 1 s in perl
by hrcerq (Monk) on Apr 08, 2021 at 17:27 UTC |