use strict; use warnings; my $exp = -4; my $in = 5e-2; my $out = $in/10**$exp; print "$in --> ${out}e${exp}\n"; __END__ 0.05 --> 500e-4
In reply to Re: Printing with a Specific Scientific Notation Exponent
by toolic
in thread Printing with a Specific Scientific Notation Exponent
by behindalens
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |