Ninke has asked for the wisdom of the Perl Monks concerning the following question:
I want my program to produce the division of two variables, this number is always very close to zero:
The output is written in an exponentional notation:print $counts / $total ."\n";
could you suggest me the best way to convert them to normal numbers, ex. 0.000002434432? Is there something like "don't use exponential" function that will be valid for all my program? Thanks in advance.2.19502183680891e-06 1.46334789120594e-06 8.04841340163266e-06 etc...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: convert output from exponentional notation to normal
by BrowserUk (Patriarch) on Mar 19, 2013 at 14:41 UTC | |
|
Re: convert output from exponentional notation to normal
by hdb (Monsignor) on Mar 19, 2013 at 14:51 UTC | |
|
Re: convert output from exponentional notation to normal
by kennethk (Abbot) on Mar 19, 2013 at 15:58 UTC | |
|
Re: convert output from exponentional notation to normal
by rjt (Curate) on Mar 19, 2013 at 22:28 UTC |