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.
Yes, I watch meteor showers
No, I do not watch meteor showers
My meteors prefer to bathe
Results (182 votes). Check out past polls.