in reply to Printing a very small number
For a precise output:
use Math::BigRat; my $num = Math::BigRat->new("9e-10"); print $num->as_float(), "\n";
Output: 0.0000000009
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Printing a very small number
by BrowserUk (Patriarch) on Aug 16, 2013 at 12:20 UTC |
In Section
Seekers of Perl Wisdom