Power variables in C++
<p>I'm currently making a binomial distribution calculator in C++. Currently having problems with the math,</p>

<pre><code>cout &lt;&lt; pow(p,x);  //working (Prints probably to the power of x)
</code></pre>

<p>for example, I tried <code>0.2^5</code> and it printed <code>0.00032</code> which is correct.</p>

<p>However:</p>

<pre><code>pToN=pow(p,x); 

cout &lt;&lt; pToN;
</code></pre>

<p>for the same power it returns <code>0</code>.</p>

<p>Thanks in advance.</p>
