How to stop large float numbers from being output in exponential form. (scientific notation?)
<p>I have a program that calculates population growth. It seems to be working but after when the population exceed 1 million it is output as a decimal number raised to a power of ten. (is this called scientic notation? exponential form? i forget.)</p>

<p>Is there anyway to output the data as a full number? Here is the code for the output where I will have to convert it.</p>

<pre><code>#include "header.h"

void output (float currentPopulation, float years, float birthRate, float deathRate)

{     
     cout &lt;&lt;  "the populaion in " &lt;&lt; years &lt;&lt; " years will be: " &lt;&lt; estimatedPopulation (currentPopulation, years, birthRate, deathRate) &lt;&lt; endl;
}   
</code></pre>

<p>New code:</p>

<pre><code>#include "header.h"

    void output (float currentPopulation, float years, float birthRate, float deathRate)

    {     
         cout &lt;&lt;  "the populaion in " &lt;&lt; years &lt;&lt; " years will be: " &lt;&lt; fixed &lt;&lt; setprecision(0) &lt;&lt; estimatedPopulation (currentPopulation, years, birthRate, deathRate) &lt;&lt; endl;
    } 
</code></pre>
