lil_v has asked for the wisdom of the Perl Monks concerning the following question:
Instead of ".20", I would like to use the unsigned value of $power, I dont know how to go about it...my $number = $base * (10**$power); $p = sprintf("%u", $power); $number = sprintf("%.20f", $number);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help with sprintf
by FunkyMonk (Bishop) on Jun 26, 2008 at 18:06 UTC | |
by lil_v (Sexton) on Jun 26, 2008 at 18:39 UTC | |
by FunkyMonk (Bishop) on Jun 26, 2008 at 18:43 UTC | |
by lil_v (Sexton) on Jun 26, 2008 at 18:49 UTC | |
by psini (Deacon) on Jun 26, 2008 at 18:57 UTC | |
|