Invalid conversion from 'int' to 'double*'
<p>I have this line of code:</p>

<pre><code>int g = modf(ans*power, 1)*10;
</code></pre>

<p>And it is giving me the error:</p>

<blockquote>
  <p>Invalid conversion from 'int' to 'double*'.</p>
</blockquote>

<p>ans is defined as:</p>

<pre><code>double ans = 1.0/d;
</code></pre>

<p>power is defined as:</p>

<pre><code>int power = pow(10,x);
</code></pre>

<p>and the x that power is using is defined as:</p>

<pre><code>for(int x = 0; x &lt; 50; x++) {
</code></pre>

<p>I don't see where I am using a pointer. If you need more code just ask.</p>

<p>(I have also tried making the line of code that causes the error: </p>

<pre><code>int g = (int)modf(ans*power, 1)*10;
</code></pre>

<p>but that did not work either).</p>
