Problems? Is your data what you think it is? | |
PerlMonks |
Re: Converting Float to SN notationby kutsu (Priest) |
on Mar 24, 2006 at 15:58 UTC ( [id://539054]=note: print w/replies, xml ) | Need Help?? |
Check out the docs for sprintf (or perldoc -f sprintf), as a quick example it could be done like: @nums = qw(3447.097333 0.5); print sprintf("%e", $_), "\n" for @nums
In Section
Seekers of Perl Wisdom
|
|