Python: the division is killing me!
<p>Heres my method:</p>

<pre><code>def geometricSum(commonRatio,firstTerm,lastTerm):
    return ((firstTerm-lastTerm)*commonRatio)/(1-commonRatio)
</code></pre>

<p>Interpreter testing:</p>

<pre><code>    &gt;&gt;&gt; geometricSum(1.0,1.0,100.0)
    Traceback (most recent call last):
      File "&lt;interactive input&gt;", line 1, in &lt;module&gt;
        File "F:\PortablePython_1.1_py3.0.1\sumOfGeometric.py", line 2, in geometricSum
          return ((firstTerm-lastTerm)*commonRatio)/(1-commonRatio)
    ZeroDivisionError: float division
</code></pre>

<p>Lawl. So I can't divide doubles? Whats the problem here?</p>

<p>I am using PythonPortable which is using python v3.0.1</p>
