Not quite.
5e-010 --> 5e-006e-4
Use sprintf '%f' to avoid that problem.
my $out = sprintf('%f', $in/10**$exp);
In reply to Re^2: Printing with a Specific Scientific Notation Exponent
by ikegami
in thread Printing with a Specific Scientific Notation Exponent
by behindalens
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |