in reply to Printing a very small number
For a precise output:
my $num = Math::BigRat->new("9e-10");
print $num->as_float(), "\n";
That works if your small number starts out as a string, but if it comes from a calculation done using normal Perl math, the 'damage' has already been done.
1. Keep it simple
2. Just remember to pull out 3 in the morning
3. A good puzzle will wake me up
Many. I like to torture myself
0. Socks just get in the way
Results (289 votes). Check out past polls.